Module: check_mk
Branch: master
Commit: b5cbcfe903f6087d841ff18e7a91bbd1bb3550fb
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b5cbcfe903f608…
Author: Konstantin Büttner <kb(a)mathias-kettner.de>
Date: Mon Nov 7 16:18:46 2016 +0100
storcli_pdisks, storcli_vdrives: Now WATO configurable
---
checks/storcli_pdisks | 3 +-
checks/storcli_vdrives | 3 +-
web/plugins/wato/check_parameters.py | 85 ++++++++++++++++++++++++++++++++++++
3 files changed, 89 insertions(+), 2 deletions(-)
diff --git a/checks/storcli_pdisks b/checks/storcli_pdisks
index cce58f6..0ad0464 100644
--- a/checks/storcli_pdisks
+++ b/checks/storcli_pdisks
@@ -85,5 +85,6 @@ check_info["storcli_pdisks"] = {
"parse_function" : parse_storcli_pdisks,
"inventory_function" : inventory_storcli_pdisks,
"check_function" : check_storcli_pdisks,
- "service_description" : "RAID PDisk EID:Slot-Device %s"
+ "service_description" : "RAID PDisk EID:Slot-Device %s",
+ "group" : "storcli_pdisks",
}
diff --git a/checks/storcli_vdrives b/checks/storcli_vdrives
index 223e9d8..c5d2886 100644
--- a/checks/storcli_vdrives
+++ b/checks/storcli_vdrives
@@ -90,5 +90,6 @@ check_info["storcli_vdrives"] = {
"parse_function" : parse_storcli_vdrives,
"inventory_function" : inventory_storcli_vdrives,
"check_function" : check_storcli_vdrives,
- "service_description" : "RAID Virtual Drive %s"
+ "service_description" : "RAID Virtual Drive %s",
+ "group" : "storcli_vdrives",
}
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 19dcd2f..01b5c8e 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -3897,6 +3897,91 @@ register_check_parameters(
"first"
)
+register_check_parameters(
+ subgroup_storage,
+ "storcli_vdrives",
+ _("LSI RAID VDrives (StorCLI)"),
+ Dictionary(
+ title = _("Evaluation of VDrive States"),
+ elements = [
+ ( "Optimal",
+ MonitoringState(
+ title = _("State for <i>Optimal</i>"),
+ default_value = 0,
+ )),
+ ( "Partially Degraded",
+ MonitoringState(
+ title = _("State for <i>Partially
Degraded</i>"),
+ default_value = 1,
+ )),
+ ( "Degraded",
+ MonitoringState(
+ title = _("State for <i>Degraded</i>"),
+ default_value = 2,
+ )),
+ ( "Offline",
+ MonitoringState(
+ title = _("State for <i>Offline</i>"),
+ default_value = 1,
+ )),
+ ( "Recovery",
+ MonitoringState(
+ title = _("State for <i>Recovery</i>"),
+ default_value = 1,
+ )),
+ ]),
+ TextAscii(
+ title = _("Virtual Drive"),
+ allow_empty = False,
+ ),
+ "dict"
+)
+
+register_check_parameters(
+ subgroup_storage,
+ "storcli_pdisks",
+ _("LSI RAID physical disks (StorCLI)"),
+ Dictionary(
+ title = _("Evaluation of PDisk States"),
+ elements = [
+ ( "Dedicated Hot Spare",
+ MonitoringState(
+ title = _("State for <i>Dedicated Hot
Spare</i>"),
+ default_value = 0,
+ )),
+ ( "Global Hot Spare",
+ MonitoringState(
+ title = _("State for <i>Global Hot
Spare</i>"),
+ default_value = 0,
+ )),
+ ( "Unconfigured Good",
+ MonitoringState(
+ title = _("State for <i>Unconfigured
Good</i>"),
+ default_value = 0,
+ )),
+ ( "Unconfigured Bad",
+ MonitoringState(
+ title = _("State for <i>Unconfigured
Bad</i>"),
+ default_value = 1,
+ )),
+ ( "Online",
+ MonitoringState(
+ title = _("State for <i>Online</i>"),
+ default_value = 0,
+ )),
+ ( "Offline",
+ MonitoringState(
+ title = _("State for <i>Offline</i>"),
+ default_value = 2,
+ )),
+ ]),
+ TextAscii(
+ title = _("PDisk EID:Slot-Device"),
+ allow_empty = False,
+ ),
+ "dict"
+)
+
#.
# .--Printing------------------------------------------------------------.
# | ____ _ _ _ |