Correctly detect RAID 0 state
Message-ID: <56baf23f.V0ALshVAMWV2xvV8%mk(a)mathias-kettner.de>
User-Agent: Heirloom mailx 12.5 6/20/10
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Module: check_mk
Branch: master
Commit: 2244763de51b4b541614350c69cf860554d1c71d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=2244763de51b4b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 10 09:17:42 2016 +0100
#3172 FIX fjdarye100_rluns fjdarye101_rluns fjdarye60_rluns: Correctly detect RAID 0
state
Thanks to Alexander Greiner Baer.
---
.werks/3172 | 9 +++++++++
ChangeLog | 1 +
checks/fjdarye.include | 2 ++
3 files changed, 12 insertions(+)
diff --git a/.werks/3172 b/.werks/3172
new file mode 100644
index 0000000..8f598ea
--- /dev/null
+++ b/.werks/3172
@@ -0,0 +1,9 @@
+Title: fjdarye100_rluns fjdarye101_rluns fjdarye60_rluns: Correctly detect RAID 0
state
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1455092205
+Class: fix
+
+Thanks to Alexander Greiner Baer.
diff --git a/ChangeLog b/ChangeLog
index 5d419df..f50d391 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -261,6 +261,7 @@
* 3071 FIX: cisco_mem, cisco_sys_mem, cisco_mem_asa: fixed incorrect unit being
displayed...
* 2990 FIX: netapp_api_vs_traffic: fixed incorrect CIFS latency...
* 2978 FIX: agent_appdynamics: fixed missing closing brackets for piggyback data
+ * 3172 FIX: fjdarye100_rluns fjdarye101_rluns fjdarye60_rluns: Correctly detect
RAID 0 state...
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/fjdarye.include b/checks/fjdarye.include
index 3d51b32..ed53565 100644
--- a/checks/fjdarye.include
+++ b/checks/fjdarye.include
@@ -133,6 +133,8 @@ def check_fjdarye_rluns(item, _no_params, info):
return (1, "RLUN copyback in progress")
elif rawdata[2] == u'\x41':
return (1, "RLUN spare is in use")
+ elif rawdata[2] == u'B':
+ return (0, "RLUN is in RAID0 state") # assumption state 42
elif rawdata[2] == u'\x00':
return (0, "RLUN is in normal state") # assumption
else: