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

Komponente Checks & agents
Titel logwatch: fix "invalid regular expression" crash
Datum 29.03.2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 2.0.0p4 2.1.0b1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Inkompatibel - Manuelle Interaktion könnte erforderlich sein

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.

Zur Liste aller Werks