Getting a host check graph image

Hi,

This topic is very similar to the one that I created and was resolved some days ago ( Host graph image - Checkmk Community )
In the article that explains how to obtain a graph as an image only appears as an example how to obtain the graph of a service.

curl "http://<server>/checkmk/check_mk/graph_image.py? request=%7B%22specification%22%3A%5B%22template%22%2C%7B%22site%22%3A%22checkmk%22%2C%22host_name%22%3A%22My-Host- 2%22%2C%22service_description%22%3A%22Check_MK%22%2C%22graph_index%22%3A0%2C%22graph_id%22%3A%22cmk_cpu_time_by_phase%22%7D%5D%2C%22data_range%22%3A%7B%22time_range%22%3A%5B1707210990. 8852692%2C1707213830.8852692%5D%2C%22step%22%3A5.142857142857143%2C%22vertical_range%22%3Anull%7D%7D%7D" -H "Authorization: Bearer username password"

What parameters must be passed to obtain as image the graph of a host check.
Thanks!

Hi,

maybe not the exact solution you want, but you can implement every host check as service and then say “use this as host check command instead”. This way you are able to get the graphs as well as the host check that you wanted. You can even implement “ping as a service”, which I would generally recommend in order to get a service for each additional IP address that you configured in your host configuration.

Regards,
Simon

Hi @simon-mueller , thanks for your reply.

Yes, that option I had already contemplated but it is not exactly what I want.
Anyway, as an alternative it seems to me a very good suggestion.

Thanks for your time!

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.