Add a generic Plugin for polling of JSON status APIs
Many applications provide an HTTP API that can be used to query the health status, as is common with Docker containers.
It is about time for a rule-based check with which the JSON output can be evaluated:
Example:
{"status":"UP","components":{"module1":{"status":"UP","details":{"System":"available","Version":"1.5.0","Count":"5"}},"module2":{"status":"UP","details":{"System":"available","Version":"1.5.0","Count":"25"}}},}
* create for each key matching regex R a own Service with Label L as prefix (LABEL_KEY) or use only one Service with Name "LABEL"
* Verify that the key X exists
* Verify that the key X has a value less, equal or grater then N
* Verify that the key X has a value that matches/not matches one or more strings/regex
* Report value y of the key X as performance data
If any of these criteria are not met, report the worst state.
Comments: 8
-
31 May, '22
SaschaHi Lars,
we have a plugin for this, that will do this. We have many Java Spring Boot Actuator Checks (Application-checks, written by the Application Developers), with we are importing this way.
Regards, Sascha -
20 Jun, '22
Lars SörensenHi Sascha
is it available as MKP or on Git?
It would of course be very welcome if Tribe29 includes something like this as an official plugin in their ecosystem to ensure optimal integration with current and future versions of CMK.
Regrads, Lars -
06 Jul, '22
MarkusHi Lars
I upvote your suggestion because the current plugin we are using is not 100% what we would like to have.
https://github.com/T-Systems-MMS/check_springboot_actuator
Event though we are going a step further and separate the checks into
<<<local>>>
0 global_status - UP
0 diskSpace - UP
we would like to have this included in the general build.
Regards
Marc -
21 Mar, '23
DocA multistep implementation would be nice (wizard)
2
1. provide url with auth
2. show all json fields
3. decide which fiels should be shown/processed
4. create rule -
03 Apr, '23
NiravHi Sascha
We are also searching for the same kind of plugin in CheckMK where all spring boot actuator endpoints are exposed and can be displayed in CheckMK, can you please share the project?
Regards,
Nirav -
31 Jan
Daniel@Sasha, any news? Can you share it?
1 -
05 Apr
Simon RussellI have a use case where Device42 supplies basic health data for its appliance via JSON. If I could read this data and choose which metrics to monitor it would be perfect. Documentation for Device42 can be found here https://support.device42.com/hc/en-us/articles/360033626413-How-we-can-monitor-Device42
1
Although the page mentions a Nagios plugin I would rather have this built in natively. I have also not been able to get the plugin to work in our testing.
Thanks,
Simon -
18 Jul
GKYes please add an generic /health endpoint. There is an /version endpoint but it's to limited. Not only for containers this is handy, but also for external monitoring the CheckMK instancens (who monitors the monitor?)