Module: check_mk
Branch: master
Commit: 8ed43c2511efc6068515fa73a6d2aa85152ecc52
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8ed43c2511efc6…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed May 21 14:51:28 2014 +0200
blade_bays: now also detects if blade server is switched off
---
.werks/920 | 8 ++++++++
ChangeLog | 1 +
checks/blade_bays | 2 ++
3 files changed, 11 insertions(+)
diff --git a/.werks/920 b/.werks/920
new file mode 100644
index 0000000..9dfb3ce
--- /dev/null
+++ b/.werks/920
@@ -0,0 +1,8 @@
+Title: blade_bays: now also detects if blade server is switched off
+Level: 1
+Component: checks
+Version: 1.2.5i3
+Date: 1400676633
+Class: feature
+
+
diff --git a/ChangeLog b/ChangeLog
index f7003d1..c5ccf4c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -54,6 +54,7 @@
* 0957 fast_lta_silent_cubes.capacity: New check for Total Capacity over all Silent
Cubes on FAST LTA Storage Systems
* 0975 esx_vsphere_vm.guest_tools: renamed check (formerly
esx_vsphere_vm.guestTools)...
NOTE: Please refer to the migration notes!
+ * 0920 blade_bays: now also detects if blade server is switched off
* 0777 FIX: special agent emcvnx: did not work with security file authentication...
* 0786 FIX: zfsget: fixed compatibility with older Solaris agents...
* 0809 FIX: brocade_fcport: Fixed recently introduced problem with port speed
detection
diff --git a/checks/blade_bays b/checks/blade_bays
index d528dc7..75032d1 100644
--- a/checks/blade_bays
+++ b/checks/blade_bays
@@ -59,6 +59,8 @@ def check_blade_bays(item, _no_params, info):
(blade_bays_module_state.get(state, 'Unhandled'), type,
line[3]))
elif state == 2:
return (1, "Not present")
+ elif state == 3:
+ return (1, "Device is switched off")
elif state == 0:
return (1, "Device is in standby")
else: