Rewrite Check_MK status in case of known missing plugin sections

Rewrite Check_MK status in case of known missing plugin sections

This article explains how to configure the Check_MK service to ignore expected missing plugin sections while alerting on unexpected ones.

LAST TESTED ON CHECKMK 2.5.0P14

Overview

By default, the Check_MK service can remain in an OK state when agent data is received, even if individual check plugins fail to provide monitoring data.

In some environments, missing data from specific plugins may be expected and should not trigger a warning. However, missing data from other plugins may indicate a monitoring issue that requires attention.

This article explains how to configure the Status of the Checkmk services rule to assign different states based on which check plugins are missing monitoring data. Using local checks as an example, the configuration allows expected missing sections to remain OK while unexpected missing sections trigger a WARN or CRIT state.

 

Step-by-step guide

  1. Go to Setup → Agents → Access to Agents → Status of the Checkmk services and create a new rule.

  2. Thick the checkbox for Overall status, to get all the available options.

  3. Set option “State if specific check plugin receive no monitoring data”, set regex “loc” to OK.

  4. 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.

    image-20261110-134247.png

     

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