Werk #13705: Special agents should not produce a check_mk section
Component | Checks & agents | ||||||||
Title | Special agents should not produce a check_mk section | ||||||||
Date | Mar 11, 2022 | ||||||||
Level | Trivial Change | ||||||||
Class | Bug Fix | ||||||||
Compatibility | Incompatible - Manual interaction might be required | ||||||||
Checkmk versions & editions |
|
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.