Module: check_mk
Branch: master
Commit: 21c753334c2022fd3459733ff3b65fa256c78194
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=21c753334c2022…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Mar 21 11:22:07 2017 +0100
4524 FIX logwatch.ec: Removed quotes from message text which caused errors in EC rule
evalution with matching criteria 'Text to match'
Change-Id: If4a9ea037bca44f682b9554423b1e121f6edee8f
---
.werks/4524 | 11 +++++++++++
checks/logwatch | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4524 b/.werks/4524
new file mode 100644
index 0000000..8e67e97
--- /dev/null
+++ b/.werks/4524
@@ -0,0 +1,11 @@
+Title: logwatch.ec: Removed quotes from message text which caused errors in EC rule
evalution with matching criteria 'Text to match'
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.4.0b5
+Date: 1490021222
+
+
diff --git a/checks/logwatch b/checks/logwatch
index 473a712..de53794 100644
--- a/checks/logwatch
+++ b/checks/logwatch
@@ -822,7 +822,7 @@ def check_logwatch_ec(item, params, info):
continue
msg = '<%d>' % (facility + logwatch_to_prio(rclfd_level or
line[0]),)
- msg += '@%s;%d;; %s %s: "%s"' % (cur_time,
params.get("service_level", 0), g_hostname, logfile, line[2:])
+ msg += '@%s;%d;; %s %s: %s' % (cur_time,
params.get("service_level", 0), g_hostname, logfile, line[2:])
messages.append(msg)
forwarded_logfiles.add(logfile)