Extract/Grab data from checkmk host

I used to grab information (e.g CPU load, CPU Utilization, Memory) from the hosts through requests.Get using python. In v1.6 there was pnp4nagios which is not available now. I also looked at the current v2’s extensive API documentation, but would anyone help direct me to which documentation to focus on or some snippets of API code to get started for my use-case? Will be very much appreciated.

Thanks!
Jem

Hi Jem,

why not use the Livestatus API to get the data you need?

See Retrieving status data via Livestatus

I would also say it like @JFS for status data you should use the Livestatus API and for configuration data the REST API. As the third option you can also use the web automation to fetch special formatted views with already filtered data. But in the end the web automation is the same data as the Livestatus data.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.