Module: check_mk
Branch: master
Commit: baccd286957cf47ef66886758bd3682c3f2275c0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=baccd286957cf4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 30 10:38:28 2013 +0100
FIX: logwatch.ec: fixed forwarding of single log lines to event console
---
ChangeLog | 1 +
checks/logwatch | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9760bb0..f85d995 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -19,6 +19,7 @@
* jolokia_metrics.mem: add dedicated PNP graph
* FIX: logwatch.ec: use UNIX socket instead of Pipe for forwarding into EC
* FIX: logwatch.ec: fixed exception when forwarding "OK" lines
+ * FIX: logwatch.ec: fixed forwarding of single log lines to event console
Multisite:
* Added comment painter to notification related views
diff --git a/checks/logwatch b/checks/logwatch
index 4e90529..05234ab 100644
--- a/checks/logwatch
+++ b/checks/logwatch
@@ -468,7 +468,7 @@ def check_logwatch_ec(_unused, params, info):
# instead of the pipe!
sock = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM)
sock.connect(method)
- sock.send('\n'.join(messages))
+ sock.send('\n'.join(messages) + '\n')
sock.close()
num_messages = len(messages)