Module: check_mk
Branch: master
Commit: afbee9905e18dd96e1bbb5a49bd85ba298a37b4e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=afbee9905e18dd…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Mon Mar 31 14:51:36 2014 +0200
ibm_svc_mdisk: mode array is now also considered to be ok
---
checkman/ibm_svc_mdisk | 2 +-
checks/ibm_svc_mdisk | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/checkman/ibm_svc_mdisk b/checkman/ibm_svc_mdisk
index 3226a22..39cc756 100644
--- a/checkman/ibm_svc_mdisk
+++ b/checkman/ibm_svc_mdisk
@@ -9,7 +9,7 @@ description:
Status {online} is {OK}, status {offline} and {excluded} are {CRIT} and
every other status is {WARN}.
- Mode {managed} is {OK} and every other mode is {WARN}.
+ Modes {managed} and {array} are {OK} and every other mode is {WARN}.
The worst of both is returned as check result.
diff --git a/checks/ibm_svc_mdisk b/checks/ibm_svc_mdisk
index 2422ae6..a88a6eb 100644
--- a/checks/ibm_svc_mdisk
+++ b/checks/ibm_svc_mdisk
@@ -62,7 +62,7 @@ def check_ibm_svc_mdisk(item, _no_params, info):
# check mdisk_mode
message += ", Mode %s" % mdisk_mode
- if mdisk_mode != "managed":
+ if mdisk_mode not in ( "managed", "array" ):
status = max(status, 1)
message += "(!)"