Werk #13523: Validate configured rules when updating configuration

Component Checks & agents
Title Validate configured rules when updating configuration
Date Jan 10, 2022
Checkmk Editon Checkmk Raw (CRE)
Checkmk Version 2.1.0i1 2.0.0p19
Level Trivial Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The Checkmk update procedure (cmk-update-config) now validates all configured rules and logs "ERROR: Invalid rule configuration detected" in case of an error. If you encounter such errors, your configuration contains rules that need to be corrected. We recommend to open the affected rules in the GUI. Upon attempting to save them, any problematic field will be highlighted.

Invalid rule values can for example originate from invalid regular expressions, which were unfortunately still allowed in Python 2 but are forbidden in Python 3, see also https://checkmk.com/de/werk/11974.

To the list of all Werks