Module: check_mk
Branch: master
Commit: 8102ef189a5cb9fe78c0ecd9037791dbdffa3806
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8102ef189a5cb9…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Tue Oct 6 10:45:03 2015 +0200
#2654 FIX logwatch: fixed high memory and cpu usage caused by too many unacknowledged
messages
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.
---
.werks/2654 | 18 ++++
ChangeLog | 1 +
checks/logwatch | 222 +++++++++++++++++++++++++++---------------------
web/htdocs/logwatch.py | 6 ++
4 files changed, 152 insertions(+), 95 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=8102ef189a…