Werk #11743: mk_logwatch: log files with special characters are ignored or cause crash

Component Checks & agents
Title mk_logwatch: log files with special characters are ignored or cause crash
Date Jan 13, 2021
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.6.0p21
Level Trivial Change
Class Bug Fix
Compatibility Incompatible - Manual interaction might be required

Log files with special characters (e.g. ä) are ignored by the mk_logwatch plugin in the event that the locale of the host is set to POSIX. On certain operating systems (SLES 12), crashes have been observed due to the same issue. They present with the following error message:

UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4 in position 2: ordinal not in range(128).

This is due to a missing character encoding and has been fixed. The plugin needs to be redistributed if this fix is needed.

To the list of all Werks