Get service status via webapi

hi,
I am wondering if I can get the status of a service via webapi.
I do not see a “get_service” command in the docs.
Goal is to get the current service status with performance data.
Is that possible via the webapi somehow or is the way to go with querying livestatus over tcp/socket?
thanks & best regards
Marco

Hi Marco,

here is a good HowTo but in german:

https://lanbugs.de/howtos/monitoring-check_mk/check_mk-livestatus-schnittstelle/

Greets Bernd

1 Like

Hi Bernd,
thank you - already seen that, but my question is if that is also possible via webapi in any way. :thinking:
br Marco

You have to use the Multisite API for status data, not the WATO API which is for configuration.
The documentation is still buried in the legacy docs: https://checkmk.com/cms_legacy_multisite_automation.html

1 Like

Hi Robert,
thank you for pointing me on the right track!
I think now I will be able to get the details I need. :+1:
br Marco

2 years later… how to get a current value from a service with the RestAPI?