rvanvuuren
5 days agoNeophyte
LogicMonitor Python API | Gather Stats
Hi All,
I am looking into gathering stats from various devices (CPU usage, Memory usage, interface specific stats etc) programatically with Python. I am specifically using the LogicMonitor SDK for Python and have been wondering if anyone has had any luck gathering those types of stats from the API?
Documentation I am following: LM API SDK
What I have been doing:
- get_device_list. From this I am able to get the necessary deviceIDs
get_device_datasource_list. Here I can see the data sources and their IDs.
However, when I try to get_device_datasource_data_by_id with the IDs gathered in step 2, I get this error
HTTP response body: {"errorMessage":"DeviceDataSource<13084642> is not found","errorCode":1404,"errorDetail":null}
Is there an easier way to get these stats that I am not seeing?