Module: check_mk
Branch: master
Commit: 104330ad9e9effad9f192b1b5b6c00de7ee2d0c4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=104330ad9e9eff…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Dec 16 16:08:14 2013 +0100
FIX blade_health: fix check, it was totally broken
Thanks to a patch from Christof Musik.
---
.werks/340 | 10 ++++++++++
ChangeLog | 1 +
checks/blade_health | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/340 b/.werks/340
new file mode 100644
index 0000000..881315d
--- /dev/null
+++ b/.werks/340
@@ -0,0 +1,10 @@
+Title: blade_health: fix check, it was totally broken
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387206421
+Targetversion: future
+
+Thanks to a patch from Christof Musik.
diff --git a/ChangeLog b/ChangeLog
index ef74e59..ad7a684 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,7 @@
* 0358 FIX: df: now ignores filesystems with a reported size of '-'...
* 0360 FIX: multipath: Inventory handles non loaded kernel module now...
* 0339 FIX: blade_bays blade_blades blade_blowers blade_health blade_mediatray
blade_powerfan blade_powermod: fix scan function...
+ * 0340 FIX: blade_health: fix check, it was totally broken...
Multisite:
* 0302 FIX: Fixed highlight of choosen elements in foldertee/views snapin in
Chrome/IE
diff --git a/checks/blade_health b/checks/blade_health
index e81cae6..cc631f4 100644
--- a/checks/blade_health
+++ b/checks/blade_health
@@ -40,7 +40,7 @@ def check_blade_health(_no_item, _no_params, info):
state = info[0][0]
descr = ''
if len(info[0]) > 1:
- descr = ': %s' % info[1][1]
+ descr = ': %s' % info[0][1]
if state == "255":
return (0, "State is good")