Icinga / icinga2

The core of our monitoring platform with a powerful configuration language and REST API.
https://icinga.com/docs/icinga2/latest
GNU General Public License v2.0
2.03k stars 579 forks source link

Icinga internal checks performance data via RestApi #10183

Open yolanjoy opened 1 month ago

yolanjoy commented 1 month ago

Currently only Icinga App Info/status is available via RestApi.

Expose Icinga internal checks performance data via RestApi. The data is provides by Icinga inbuilt checks such as "icinga", "cluster"., "cluster-zone", "ido" .

oxzi commented 1 month ago

You can fetch the result of a Service check via the API as well. Each Service object has runtime attributes as, e.g., last_check_result. This will be of the CheckResult type, hopefully containing every information you need.

Thus, start at API, Querying Objects, perform a query for the Service you need, for example against https://example.com:5665/v1/objects/services/icinga.example.com!icinga, and inspect the last_check_result.

I hope this helps.