Werk #13705: Special agents should not produce a check_mk section

Komponente Checks & agents
Titel Special agents should not produce a check_mk section
Datum 11.03.2022
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Inkompatibel - Manuelle Interaktion könnte erforderlich sein
Checkmk versions & editions
2.2.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.1.0b2 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

This werk only affects maintainers of custom special agents.

Special agents should not produce an check_mk section.

In the past, writing this section in the output of a special agent offered the possibility to hack a version information into the "Check_MK" service. Since the display of the hosts OS and agent version has been moved out of the "Check_MK" service, this will not only not work anymore, but it will lead to confusing output the new "Check_MK Agent" service.

The reasoning behind this change is this: The state (and summary) of the "Check_MK" service should be determined by the successfull or failed operation of the datasources, such as timeouts, refused connections and parsing exceptions. It should not be concerned with the semantics of the received payload.

If you want to display the version number of the special agent, you have to implement a dedicated service. However note that the special agent is on the site, not on the monitored host, so its version is not really a property of the monitored host.

If you want to use the OS information, you have to write your own plugin. If you care about host labels, consider writing a <<<labels>>> compliant section.

Zur Liste aller Werks