Rewrite Check_MK status in case of known missing plugin sections
In this case, you can rewrite the Check_MK output as follows, in this example for local checks:
Step-by-step guide
- Go to Setup → Agents → Access to Agents → Status of the Checkmk services and create a new rule.
- Thick the checkbox for Overall status, to get all the available options.
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