Module: check_mk
Branch: master
Commit: 142c3c5e7dac23cf46912b171457d83ad332794b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=142c3c5e7dac23…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jan 8 14:38:23 2014 +0100
Fixed wrong indentation
Conflicts:
checks/dell_om_disks
---
checks/dell_om_disks | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/checks/dell_om_disks b/checks/dell_om_disks
index 25514d1..c7b5727 100644
--- a/checks/dell_om_disks
+++ b/checks/dell_om_disks
@@ -96,6 +96,11 @@ def check_dell_om_disks(item, _no_params, info):
msg.append("state %s%s" % ( pdisk_state.get(dstate, 'ukn
(%s)' % dstate ), label ))
msg.append("Bus Type: %s" % bus_type.get(btype,'unk (%s)' %
btype) )
+ # handle global hot spares as OK
+ if sstate == 3 and dstate == 1:
+ state = 0
+ label = ""
+
if sstate != 5:
msg.append("Spare State: %s" % spare_state.get(sstate, 'ukn
(%s)' %sstate ))
if mt != 0: