Module: check_mk
Branch: master
Commit: e1580623ebce2d6e1f3731ec0f8317f46e2fcebc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e1580623ebce2d…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Fri Jan 23 14:21:59 2015 +0100
WATO rule for special agent ibm svc extended, plus allow 25 fields in agent output for
ibm_svc_mdiskgrp
---
checks/ibm_svc_mdiskgrp | 4 ++--
web/plugins/wato/datasource_programs.py | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/checks/ibm_svc_mdiskgrp b/checks/ibm_svc_mdiskgrp
index 828f4ae..a40fa32 100644
--- a/checks/ibm_svc_mdiskgrp
+++ b/checks/ibm_svc_mdiskgrp
@@ -57,12 +57,12 @@ def ibm_svc_mdiskgrp_to_mb(size):
def inventory_ibm_svc_mdiskgrp(info):
for line in info:
- if len(line) in (15, 19, 24):
+ if len(line) in (15, 19, 24, 25):
yield line[1], {}
def check_ibm_svc_mdiskgrp(item, params, info):
for line in info:
- if len(line) in (15, 19, 24) and item == line[1]:
+ if len(line) in (15, 19, 24, 25) and item == line[1]:
mgrp_status = line[2]
if mgrp_status != "online":
diff --git a/web/plugins/wato/datasource_programs.py
b/web/plugins/wato/datasource_programs.py
index 5e65414..482bd2e 100644
--- a/web/plugins/wato/datasource_programs.py
+++ b/web/plugins/wato/datasource_programs.py
@@ -328,6 +328,7 @@ register_rule(group,
( "lssystemstats", _("System Stats") ),
( "lseventlog", _("Event Log") ),
( "lsportfc", _("FC Ports") ),
+ ( "lsportsas", _("SAS Ports") ),
( "lsenclosure", _("Enclosures") ),
( "lsenclosurestats", _("Enclosure Stats")
),
( "lsarray", _("RAID Arrays") ),