Module: check_mk
Branch: master
Commit: 59dd2c4a6d3a2a1616b987c3196f01f58e147826
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=59dd2c4a6d3a2a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 10 15:02:02 2012 +0200
FIX: Logwatch: Logwatch services in rules configured using WATO must be
given as item, not as whole service name
---
ChangeLog | 2 ++
checks/logwatch | 4 +++-
2 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dbee015..fbb8433 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -33,6 +33,8 @@
Checks & Agents:
* FIX: Logwatch: fixed missing linebreak during reclassifing lines of logfiles
+ * FIX: Logwatch: Logwatch services in rules configured using WATO must be
+ given as item, not as whole service name
BI:
* FIX: make rotating folding arrows black (white was not visible)
diff --git a/checks/logwatch b/checks/logwatch
index 007c235..4154102 100644
--- a/checks/logwatch
+++ b/checks/logwatch
@@ -97,7 +97,9 @@ def logwatch_precompile(hostname, item, _unused):
# Initialize the patterns list with the logwatch_rules
params = []
description = check_info['logwatch']['service_description'] % item
- rules = service_extra_conf(hostname, description, logwatch_rules)
+
+ # This is the new (-> WATO controlled) variable
+ rules = service_extra_conf(hostname, item, logwatch_rules)
for rule in rules:
for pattern in rule:
params.append((pattern[0], pattern[1]))