Rewrite Check_MK status in case of known missing plugin sections
The Check_MK service's status is always OK if any agent data is received and processed. However, sometimes the data might be incomplete because maybe some plugins run into a timeout. And maybe this is OK for some checks because you'd expect a particular plugin or local check to timeout sometimes during the day.
LAST TESTED ON CHECKMK 2.2.0P1
In this case, you can rewrite the Check_MK output as follows (Checkmk 2), in this case for local checks:
Step-by-step guide
- Go to Setup → Agents → Access to Agents → Status of the Checkmk services and create a new rule.
Set “State if just some check plugins receive no monitoring data” to OK.
Set option “State if specific check plugin receive no monitoring data”, set regex “loc” to OK
Set regex to .*$ and to WARN (or CRIT) because we want the Check_MK service to warn us if any other sections than “local” are missing.
Inline Help
In addition to setting the generic “Missing monitoring data” state above, you can specify a regex pattern to match specific check plugins and give them an individual state in case they receive no monitoring data. Note that the first match is used.
The text entered here is handled as a regular expression pattern. The pattern is matched from the beginning. Add a tailing $ to change it to a whole text match. The match is case-sensitive. Read more about regular expression matching in Checkmk in our user guide.
Related articles