Module: check_mk
Branch: master
Commit: 4ab277b3d01f3909a2b198f3b9c862026c500a8a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ab277b3d01f39…
Author: Sebastian Herbord <sh(a)mathias-kettner.de>
Date: Thu Jan 28 14:32:57 2016 +0100
#2940 FIX dell_om_disks: non-raid state is no longer treated as a critical problem
Disks that have been configured to not be used in a raid are apparently reported as state
non-raid.
This was reported as a critical issue although it's probably intentional.
---
.werks/2940 | 10 ++++++++++
ChangeLog | 1 +
checks/dell_om_disks | 3 ++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/2940 b/.werks/2940
new file mode 100644
index 0000000..bb3d3c9
--- /dev/null
+++ b/.werks/2940
@@ -0,0 +1,10 @@
+Title: dell_om_disks: non-raid state is no longer treated as a critical problem
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453987797
+Class: fix
+
+Disks that have been configured to not be used in a raid are apparently reported as state
non-raid.
+This was reported as a critical issue although it's probably intentional.
diff --git a/ChangeLog b/ChangeLog
index 664d640..818fa7c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -229,6 +229,7 @@
* 2971 FIX: heartbeat_crm: Is now compatible with more forms of crm_mon output
formats
* 2972 FIX: df: Filesystem trends: Outputting less senseless time left in case of
nearly 0 growth
* 3034 FIX: cups_queues: Fixed bug when no user name available for a print job
+ * 2940 FIX: dell_om_disks: non-raid state is no longer treated as a critical
problem...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/dell_om_disks b/checks/dell_om_disks
index 8de635c..8ac01c1 100644
--- a/checks/dell_om_disks
+++ b/checks/dell_om_disks
@@ -62,6 +62,7 @@ def check_dell_om_disks(item, _no_params, info):
6 : 'Degraded',
7 : 'Recovering',
11 : 'Removed',
+ 13 : 'non-raid',
15 : 'Resynching',
22 : 'Replacing', # FIXME: this one is not defined in the OMSA MIBs
24 : 'Rebuilding',
@@ -93,7 +94,7 @@ def check_dell_om_disks(item, _no_params, info):
if dstate in [ 40, 35, 34, 26, 7, 4]:
state = 1
label = "(!)"
- elif dstate not in [ 3, 1 ]:
+ elif dstate not in [ 3, 1, 13 ]:
state = 2
label = "(!!)"