Werk #10254: Improve error handling of incompatible discovery functions
Component | Core & setup |
Title | Improve error handling of incompatible discovery functions |
Date | Oct 10, 2019 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 1.6.0p5 2.0.0i1 |
Level | Trivial Change |
Class | Bug Fix |
Compatibility | Compatible - 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.