Module: check_mk
Branch: master
Commit: 0e7520005eb5e61961aa75724f4c0b91c74bc942
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0e7520005eb5e6…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Dec 18 08:58:08 2014 +0100
#1770 FIX megaraid_pdisks: Now handling unconfigured good/bad states
The check now also handles the states Unconfigured(good) (as OK state)
and Unconfigured(bad) (as WARNING state).
---
.werks/1770 | 11 +++++++++++
ChangeLog | 1 +
checks/megaraid_pdisks | 8 +++++---
3 files changed, 17 insertions(+), 3 deletions(-)
diff --git a/.werks/1770 b/.werks/1770
new file mode 100644
index 0000000..b7d5219
--- /dev/null
+++ b/.werks/1770
@@ -0,0 +1,11 @@
+Title: megaraid_pdisks: Now handling unconfigured good/bad states
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1418889442
+
+The check now also handles the states Unconfigured(good) (as OK state)
+and Unconfigured(bad) (as WARNING state).
diff --git a/ChangeLog b/ChangeLog
index d63eb95..e8375f2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -23,6 +23,7 @@
* 1767 FIX: fc_port: Re-enabled check discovery of this check
* 1768 FIX: brocade_fcport/brocade_info: Only try to discover these services when
device provides correct info...
* 1769 FIX: megaraid_bbu: Fixed exception for some controllers reporting "full
charge capacity"
+ * 1770 FIX: megaraid_pdisks: Now handling unconfigured good/bad states...
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/megaraid_pdisks b/checks/megaraid_pdisks
index e04789e..84cf345 100644
--- a/checks/megaraid_pdisks
+++ b/checks/megaraid_pdisks
@@ -104,9 +104,11 @@ def inventory_megaraid_pdisks(info):
return inventory
megaraid_pdisks_states = {
- 'Online' : 0,
- 'Hotspare' : 0,
- 'Failed' : 2,
+ 'Online' : 0,
+ 'Hotspare' : 0,
+ 'Unconfigured(good)' : 0,
+ 'Failed' : 2,
+ 'Unconfigured(bad)' : 1,
}
def check_megaraid_pdisks(item, _no_params, info):