Module: check_mk
Branch: master
Commit: cf0d94c5c6bd250b230498324c602c6c3c343593
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf0d94c5c6bd25…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Jan 27 11:44:31 2012 +0100
Wato: Checkgroups
---
checks/akcp_sensor_humidity | 2 +-
checks/oracle_logswitches | 2 +-
checks/win_dhcp_pools | 2 +-
web/plugins/wato/check_parameters.py | 56 ++++++++++++++++++++++++++-------
4 files changed, 47 insertions(+), 15 deletions(-)
diff --git a/checks/akcp_sensor_humidity b/checks/akcp_sensor_humidity
index 64dea1e..7af6432 100644
--- a/checks/akcp_sensor_humidity
+++ b/checks/akcp_sensor_humidity
@@ -81,4 +81,4 @@ snmp_info['akcp_sensor_humidity'] = (
snmp_scan_functions['akcp_sensor_humidity'] = \
lambda oid: "AKCP" in oid(".1.3.6.1.4.1.3854.1.1.6.0") and
"sensorProbe" in oid(".1.3.6.1.4.1.3854.1.1.8.0")
-checkgroup_of['akcp_sensor_humidity'] = "4xthreshold"
+checkgroup_of['akcp_sensor_humidity'] = "akcp_humidity"
diff --git a/checks/oracle_logswitches b/checks/oracle_logswitches
index 553704e..558ad25 100644
--- a/checks/oracle_logswitches
+++ b/checks/oracle_logswitches
@@ -50,4 +50,4 @@ def check_oracle_logswitches(item, params, info):
return (2, "UNKNOWN - Database not existing or not running")
check_info['oracle_logswitches'] = (check_oracle_logswitches, "ORA %s
Logswitches", 1, inventory_oracle_logswitches )
-checkgroup_of['oracle_logswitches'] = "4xthreshold"
+checkgroup_of['oracle_logswitches'] = "oracle_logswitches"
diff --git a/checks/win_dhcp_pools b/checks/win_dhcp_pools
index 5475724..b6f57e2 100644
--- a/checks/win_dhcp_pools
+++ b/checks/win_dhcp_pools
@@ -155,4 +155,4 @@ def check_win_dhcp_pools_stats(item, params, info):
check_info['win_dhcp_pools'] = (check_win_dhcp_pools, "DHCP Pool %s",
1, inventory_win_dhcp_pools)
check_info['win_dhcp_pools.stats'] = (check_win_dhcp_pools_stats, "DHCP
Stats", 1, inventory_win_dhcp_pools_stats)
-checkgroup_of['win_dhcp_pools'] = "2xthresholdPercent"
+checkgroup_of['win_dhcp_pools'] = "win_dhcp_pools"
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index a650a0f..7506f56 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -632,16 +632,33 @@ checkgroups.append((
None, None))
checkgroups.append((
- "4xthreshold",
- _("4 Threshold limits"),
+ "akcp_humidity",
+ _("AKCP Humidity Levels"),
Tuple(
- help = _("This rulset enables you to setup the threshold limts for
checks"
- "who needs critmin, warnmin, warnmax, critmax levels "),
+ help = _("This Rulset sets the threshold limits for humidity sensors
attached to "
+ "AKCP Sensor Probe "),
+ elements = [
+ Integer(title = _("Critical if moisture lower than")),
+ Integer(title = _("Warning if moisture lower than")),
+ Integer(title = _("Warning if moisture higher than")),
+ Integer(title = _("Critical if moisture higher than")),
+ ]),
+ TextAscii(
+ title = _("Service descriptions"),
+ allow_empty = False),
+ None))
+
+checkgroups.append((
+ "oracle_logswitches",
+ _("Oracle Logswitches"),
+ Tuple(
+ help = _("This check monitors the number of log switches of an ORACLE
"
+ "database instance in the last 60 minutes. You can set levels for
upper and lower bounds."),
elements = [
- Integer(title = _("Critical if lower then")),
- Integer(title = _("Warning if lower then")),
- Integer(title = _("Warning if higher then")),
- Integer(title = _("Critical if higher then")),
+ Integer(title = _("Critical if fewer than"), unit=_("log
switches")),
+ Integer(title = _("Warning if fewer than"), unit=_("log
switches")),
+ Integer(title = _("Warning if more than"), unit=_("log
switches")),
+ Integer(title = _("Critical if more than"), unit=_("log
switches")),
]),
TextAscii(
title = _("Service descriptions"),
@@ -655,8 +672,8 @@ checkgroups.append((
help = _("This rulset enables you to setup the threshold limts for
checks"
"who needs a warn and a critical level"),
elements = [
- Integer(title = _("Warning if higher then")),
- Integer(title = _("Critical if higher then")),
+ Integer(title = _("Warning if higher than")),
+ Integer(title = _("Critical if higher than")),
]),
TextAscii(
title = _("Service descriptions"),
@@ -670,8 +687,23 @@ checkgroups.append((
help = _("This rulset enables you to setup the threshold limts for
checks"
"who needs a warn- and a critical percent level"),
elements = [
- Percentage(title = _("Warning if higher then")),
- Percentage(title = _("Critical if higher then")),
+ Percentage(title = _("Warning if higher than")),
+ Percentage(title = _("Critical if higher than")),
+ ]),
+ TextAscii(
+ title = _("Service descriptions"),
+ allow_empty = False),
+ None))
+
+checkgroups.append((
+ "win_dhcp_pools",
+ _("Windows DHCP Pool"),
+ Tuple(
+ help = _("The count of remaining entries in the DHCP pool represents
"
+ "the number of IP addresses left which can be assigned in the
network"),
+ elements = [
+ Percentage(title = _("Warning if pool usage higher than")),
+ Percentage(title = _("Critical if pool usage higher than")),
]),
TextAscii(
title = _("Service descriptions"),