Werk #2654: logwatch: fixed high memory and cpu usage caused by too many unacknowledged messages

Komponente Checks & agents
Titel logwatch: fixed high memory and cpu usage caused by too many unacknowledged messages
Datum 06.10.2015
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.2.7i3
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

Due to a change in werk 2414, the local copy of the monitored logfile continued to grow and was parsed in every check cycle. With growing file size this could cause extreme cpu and memory load. This fix is twofold: a) The check now stops appending to the file once the filesize limit is reached. This was the behaviour pre-2414 anyway b) The configurable reclassification patterns are now only applied to old loglines once after each change to the patterns.

Please note that this doesn't automatically truncate the copy of the logfile if it already exceeds the size limit.

Zur Liste aller Werks