Module: check_mk
Branch: master
Commit: 07db7a15e39ef1da6fb7aead32212837bf322ed4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=07db7a15e39ef1…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Jul 12 15:18:11 2017 +0200
4917 FIX multipath: Fixed wrong output message if state changed to warn because of to much
paths
The output message suggested, that the state would be CRIT but actually is
warn if to much paths are detected.
Change-Id: I0a99e1bf48b57c10f88712e328417dd52ba08067
---
.werks/4917 | 11 +++++++++++
checks/multipath | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4917 b/.werks/4917
new file mode 100644
index 0000000..4efc45c
--- /dev/null
+++ b/.werks/4917
@@ -0,0 +1,11 @@
+Title: multipath: Fixed wrong output message if state changed to warn because of to much
paths
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1499865368
+Class: fix
+
+The output message suggested, that the state would be CRIT but actually is
+warn if to much paths are detected.
diff --git a/checks/multipath b/checks/multipath
index 4c7615a..fe40d85 100644
--- a/checks/multipath
+++ b/checks/multipath
@@ -345,7 +345,7 @@ def check_multipath(item, params, parsed):
infotext += " (crit below %d)" % expected_paths
elif num_active > expected_paths:
state = 1
- infotext += " (crit at %d)" % expected_paths
+ infotext += " (warn at %d)" % expected_paths
else:
state = 0
yield state, infotext