Module: check_mk
Branch: master
Commit: 132ee3eb48dae6453217078f6f5c6c77f9383db8
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=132ee3eb48dae6…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Tue Mar 25 14:16:25 2014 +0100
ibm_svc_host: additional state online
---
checkman/ibm_svc_host | 4 ++--
checks/ibm_svc_host | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/checkman/ibm_svc_host b/checkman/ibm_svc_host
index f8bb1fd..9a43898 100644
--- a/checkman/ibm_svc_host
+++ b/checkman/ibm_svc_host
@@ -6,8 +6,8 @@ distribution: check_mk
description:
Checks the status of hosts an IBM SVC / V7000 presents volumes to.
- If there are only hosts reporting status {active} or {inactive} the
- check returns {OK}. If there are hosts reporting {degraded} status or
+ If there are only hosts reporting status {active}, {online} or {inactive}
+ the check returns {OK}. If there are hosts reporting {degraded} status or
any unidentified status the check returns {WARN}. If some hosts report
{offline} status the check returns {CRIT}.
diff --git a/checks/ibm_svc_host b/checks/ibm_svc_host
index e648061..934255f 100644
--- a/checks/ibm_svc_host
+++ b/checks/ibm_svc_host
@@ -43,7 +43,7 @@ def check_ibm_svc_host(item, _no_params, info):
degraded += 1
elif line[4] == 'offline':
offline += 1
- elif line[4] == 'active':
+ elif line[4] == 'active' or line[4] == 'online':
active += 1
elif line[4] == 'inactive':
inactive += 1