Module: check_mk
Branch: master
Commit: 6a4c3948f63b43ceeb88ec0cd0dc593832f5b565
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a4c3948f63b43…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Mon Apr 24 16:43:12 2017 +0200
4637 FIX blade_blades: Fixed buggy state validation
Change-Id: I9aeeec90092bc42537e524a98c5fd320ada8502a
---
.werks/4637 | 10 ++++++++++
checks/blade_blades | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/4637 b/.werks/4637
new file mode 100644
index 0000000..8145f68
--- /dev/null
+++ b/.werks/4637
@@ -0,0 +1,10 @@
+Title: blade_blades: Fixed buggy state validation
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1493044917
+Class: fix
+
+
diff --git a/checks/blade_blades b/checks/blade_blades
index 1ab4c78..844066c 100644
--- a/checks/blade_blades
+++ b/checks/blade_blades
@@ -97,10 +97,10 @@ def check_blade_blades(item, _no_params, info):
state, state_readable = map_exists[line[1]]
yield state, "Exists: %s" % state_readable
# power_state
- state, state_readable = map_exists[line[2]]
+ state, state_readable = map_power[line[2]]
yield state, "Power: %s" % state_readable
# health_state
- state, state_readable = map_exists[line[3]]
+ state, state_readable = map_health[line[3]]
yield state, "Health: %s" % state_readable