We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Werk #10254: Improve error handling of incompatible discovery functions

ComponentCore & Setup
TitleImprove error handling of incompatible discovery functions
Date2019-10-10 12:14:29
Checkmk EditionCheckmk Raw Edition (CRE)
Checkmk Version1.6.0p5,2.0.0i1
LevelTrivial Change
ClassBug Fix
CompatibilityCompatible - no manual interaction needed

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.