Werk #12631: logwatch: fix "invalid regular expression" crash

Component Checks & agents
Title logwatch: fix "invalid regular expression" crash
Date Mar 29, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 2.0.0p4 2.1.0b1
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required

The logwatch check crashed when the option to reclassify error messages was used in combination with regular expressions that contain a special character escaped with a back slash. The error looks similar to this: "Exception: MKGeneralException (Invalid regular expression 'some.random.file.exe) has opened key': unbalanced parenthesis at position 28)". This has been fixed. Please be aware that you may need to review your regular expression patterns, especially in the case of Windows file paths. Toggle inline help for more information.

To the list of all Werks