Werk #10141: mk_logwatch: be more robust against unexpected file encoding
Komponente | Checks & agents |
Titel | mk_logwatch: be more robust against unexpected file encoding |
Datum | 25.09.2019 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk-Version | 1.6.0p1 2.0.0i1 |
Level | Kleine Änderung |
Klasse | Bugfix |
Kompatibilität | Kompatibel - benötigt kein manuelles Eingreifen |
In version 1.6.0 the mk_logwatch plugin crashed if a processed logfile could not be correctly decoded. This lead to log services not being updated. Even worse a single logfile with this issue could affect other logfiles.
We now replace all characters that can not be encoded with the U+FFFD replacement character. In addition, in case of an exception we now continue processing the next file.