Module: check_mk
Branch: master
Commit: f873117073c390ab8d2869c00a2695bebd41f85e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f873117073c390…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Sep 12 11:00:20 2013 +0200
WATO new rule: switch_state, expected state of physical switch
---
ChangeLog | 1 +
web/plugins/wato/check_parameters.py | 19 +++++++++++++++++++
2 files changed, 20 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 63b7269..59bbc78 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -177,6 +177,7 @@
large" error messages during submitting forms
* FIX: automation snmp scan now adhere rules for shoddy snmp devices
which have no sys description
+ * ADD: Rule to check state of physical switch (currently used by etherbox check)
Notifications:
* Flexible Notification can now filter service levels
diff --git a/web/plugins/wato/check_parameters.py b/web/plugins/wato/check_parameters.py
index 0a4f9a0..47c66a5 100644
--- a/web/plugins/wato/check_parameters.py
+++ b/web/plugins/wato/check_parameters.py
@@ -2864,6 +2864,25 @@ register_check_parameters(
register_check_parameters(
subgroup_environment,
+ "switch_state",
+ _("State of physical switch"),
+ DropdownChoice(
+ help = _("This Rule sets the required state of a physical switch"),
+ label = _("Required switch state"),
+ choices = [
+ ( "open", "Switch is <b>open</b>" ),
+ ( "closed", "Switch is <b>closed</b>"
),
+ ( "ignore", "Ignore switch state" ),
+ ],
+ ),
+ TextAscii(
+ title = _("Sensor"),
+ allow_empty = False),
+ None
+)
+
+register_check_parameters(
+ subgroup_environment,
"room_temperature",
_("Room temperature (external thermal sensors)"),
Tuple(