Module: check_mk
Branch: master
Commit: 1dd449a6c91e9c1e3623bb438b363913a4026802
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1dd449a6c91e9c…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Wed Oct 28 09:18:28 2015 +0100
logwatch: fixed a bug introduced with werk #2654
the check was reported as OK state if no new messages were reported recently, even if
older messages
were warn or crit
---
checks/logwatch | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/logwatch b/checks/logwatch
index a768b51..a4d1fcd 100644
--- a/checks/logwatch
+++ b/checks/logwatch
@@ -553,7 +553,7 @@ def check_logwatch_generic(item, params, loglines, found,
groups=False):
# Render output
#
- if not collect_block.output_lines:
+ if collect_block.worst <= 0:
return (0, "no error messages")
else:
count_txt = []