Wir nutzen Cookies, um Ihnen eine optimale Nutzung dieser Webseite zu ermöglichen.Visit our Privacy Policy to learn more. Wir nehmen an, dass Sie damit einverstanden sind, falls Sie diese Webseite weiter besuchen.

Ihre Cookie-Einstellungen
Ihre Einstellungen wurden aktualisiert.
Damit die Änderungen wirksam werden, löschen Sie bitte Ihre Browser-Cookies und den Cache und laden dann die Seite neu.

CMK-376

TitelImprove Agent (+Plugin) error handling
KomponenteChecks & Agents
Datum2018-02-20
StatusNew
KlasseFeature/Improvement


Agents and agent plugins currently have a hard time reporting problems (or things that may be a problem) in such a way that the user becomes aware of them. There are various aspects to consider here: * Where to report things. Proposals: inside the agent section, in a separate field of each check * reporting things that may not be a problem may confuse the user and prompt support requests for non-issues... * ... not reporting them may cause increased effort trying to find real problems * traffic shouldn't increase (significantly) if no problems occur Proposed solution: at any point in the agent output a line formatted as "<<<<< text >>>>>" may be printed to report an error. Those lines do not end a section and are associated with the current section. Inside check_mk those lines are extracted, decorated with the section name and added to the long output of the agent section and that section is put into warning state if there is at least one line. Diagnostics messages may be written to a local file (similar to the crash log on windows). Error messages are automatically also written to that file. If the agent has reported error messages, that error report would reference that diagnostics log for extended information (i.e. "see /var/log/check_mk_agent.log for details").