Module: check_mk
Branch: master
Commit: 1a0f4a7e5abbc7baaf8ae4716e57d74026d5ccdd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1a0f4a7e5abbc7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Oct 1 15:46:25 2012 +0200
FIX: Linux mk_logwatch: iregex Parameter was never used
---
ChangeLog | 3 +++
agents/plugins/mk_logwatch | 3 +--
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index d3bb08f..c361152 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -29,6 +29,9 @@
Livestatus
* FIX: comments_with_info in service table was always empty
+ Checks & Agents:
+ * FIX: Linux mk_logwatch: iregex Parameter was never used
+
1.2.1i1:
Core:
* Allow to add options to rules. Currently the options "disabled" and
diff --git a/agents/plugins/mk_logwatch b/agents/plugins/mk_logwatch
index beb19e9..2910ab6 100755
--- a/agents/plugins/mk_logwatch
+++ b/agents/plugins/mk_logwatch
@@ -241,7 +241,6 @@ for filenames, patterns in config:
opt_maxlines = None
opt_maxtime = None
opt_regex = None
- opt_iregex = None
opt_overflow = 'C'
opt_overflow_level = 2
try:
@@ -259,7 +258,7 @@ for filenames, patterns in config:
elif key == 'regex':
opt_regex = re.compile(value)
elif key == 'iregex':
- opt_iregex = re.compile(value, re.I)
+ opt_regex = re.compile(value, re.I)
else:
raise Exception("Invalid option %s" % key)
except Exception, e: