How to get cpu/mem through the API

Hi,

I want to get the current CPU and memory of the device through the API. I found that accessing https://librenms.org/api/v0/devices/localhost/health/device_processor returns empty values. How can I retrieve the current CPU and memory of the device through the API?

Thanks

1 Like