Module: check_mk
Branch: master
Commit: ff79bba1f0e48857f9c08da80ef0bf4d472d849b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ff79bba1f0e488…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon May 7 10:47:44 2012 +0200
FIX: Logwatch: fixed missing linebreak during reclassifing lines of logfiles
---
ChangeLog | 3 +++
checks/logwatch | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 0b0bb9b..697321a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,9 @@
* FIX: commands can be executed again
* FIX: fixed styling of buttons
+ Checks & Agents:
+ * FIX: Logwatch: fixed missing linebreak during reclassifing lines of logfiles
+
1.2.0b3:
Core:
* FIX: fixed SNMP info declaration in checks: could be garbled
diff --git a/checks/logwatch b/checks/logwatch
index 43d3fca..007c235 100644
--- a/checks/logwatch
+++ b/checks/logwatch
@@ -322,7 +322,7 @@ def check_logwatch(item, params, info):
# Only rewrite the lines if at least one line has been reclassified
if reclassified:
- file(logfile, 'w').write('\n'.join(reclassified_lines))
+ file(logfile, 'w').write('\n'.join(reclassified_lines) +
'\n')
#
# Render output