Werk #10254: Improve error handling of incompatible discovery functions

Komponente Core & setup
Titel Improve error handling of incompatible discovery functions
Datum 10.10.2019
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.6.0p5 2.0.0i1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

In previous 1.6 versions it could happen that 3rd party checks raise a TypeError exception resulting in a crash report with a message like this: TypeError (inventory_sslcertificates() takes exactly 2 arguments

This issue occurs because we have removed some compatibility code that dealt with older discovery function syntax. This was planned to be removed since 1.2.6 and has now been finally done.

Discovery functions of Checkmk checks take a single argument these days. This is either the agent info structure or, in case a check has a parse function defined, the output of the parse function parsed.

Instead of a crash Checkmk produces an error message that should lead you to the check plugin in question. You will have to either remove or update the plugin. Normally you simply need to remove the first argument of the discovery function.

Zur Liste aller Werks