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: 5
-
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
MarcHi 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
DocA multistep implementation would be nice (wizard)
1. provide url with auth
2. show all json fields
3. decide which fiels should be shown/processed
4. create rule -
03 Apr
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