Werk #11743: mk_logwatch: log files with special characters are ignored or cause crash
Komponente | Checks & agents |
Titel | mk_logwatch: log files with special characters are ignored or cause crash |
Datum | 13.01.2021 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.6.0p21 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Inkompatibel - Manuelle Interaktion könnte erforderlich sein |
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.