Module: check_mk
Branch: master
Commit: 42926865436ecef1be19d2590e73b69630092dcc
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=42926865436ece…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri May 17 11:49:10 2013 +0200
FIX: aix_lvm: handle agents that output an extra header line
---
ChangeLog | 1 +
checks/aix_lvm | 3 +++
2 files changed, 4 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 2d03669..4869f98 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -139,6 +139,7 @@
* FIX: f5_bigip_vserver: fix wrong OID (13 instead of 1), thanks to Miro Ramza
* FIX: f5_bigip_psu: handle more than first power supply, thanks to Miro Ramza
* FIX: ipmi_sensors: ignore sensors in state [NA] (not available)
+ * FIX: aix_lvm: handle agents that output an extra header line
Multisite:
* List of views: Output the alias of a datasource instead of internal name
diff --git a/checks/aix_lvm b/checks/aix_lvm
index 362071d..be918ac 100644
--- a/checks/aix_lvm
+++ b/checks/aix_lvm
@@ -69,6 +69,9 @@ def parse_aix_lvm(info):
if len(line) == 1:
vgname = line[0][:-1]
lvmconf.update({ vgname : {} })
+ # Some versions send a title line "LV NAME ..."
+ elif line[0] == "LV" and line[1] == "NAME":
+ continue
else:
lv, lvtype, num_lp, num_pp, num_pv, act_state, mountpoint = line
# split lv state into two relevant values
Module: check_mk
Branch: master
Commit: bb76f59a3e6966226aebd07c1eae526d1cd60861
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bb76f59a3e6966…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 16 12:50:14 2013 +0200
FIX: convert editing of global setting to POST.
Conflicts:
ChangeLog
---
ChangeLog | 6 ++++++
web/htdocs/wato.py | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index a90929e..74fb65e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -138,6 +138,12 @@
* FIX: f5_bigip_psu: handle more than first power supply, thanks to Miro Ramza
* FIX: ipmi_sensors: ignore sensors in state [NA] (not available)
+ Multisite:
+ * List of views: Output the alias of a datasource instead of internal name
+
+ WATO:
+ * FIX: convert editing of global setting to POST. This avoid URL-too-long
+ when defining lots of Event Console actions
1.2.2p1:
Core:
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index eb82b7a..4a8fb36 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5530,7 +5530,7 @@ def mode_edit_configvar(phase):
check_mk_vars = check_mk_local_automation("get-configuration", [], [varname])
value = check_mk_vars.get(varname, valuespec.default_value())
- html.begin_form("value_editor")
+ html.begin_form("value_editor", method="POST")
forms.header(valuespec.title())
if not config.wato_hide_varnames:
forms.section(_("Variable for <tt>%s.mk</tt>" %
Module: check_mk
Branch: master
Commit: e68bb49c6767824759a7b4f312d76690569ae66b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e68bb49c676782…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 16 09:52:50 2013 +0200
WATO: New rule for notification_options of hosts and services
---
ChangeLog | 1 +
web/plugins/wato/check_mk_configuration.py | 51 +++++++++++++++++++++++++++-
2 files changed, 51 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 41d9723..d688d30 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -125,6 +125,7 @@
for each logfile on a host
* Configuration of an alternativ host check command
* Inventory: Display link symbol for ps ruleset
+ * New rule for notification_options of hosts and services
* FIX: Rulesets: correct display of rules within subfolders
diff --git a/web/plugins/wato/check_mk_configuration.py b/web/plugins/wato/check_mk_configuration.py
index 2a90b6a..1bc5f19 100644
--- a/web/plugins/wato/check_mk_configuration.py
+++ b/web/plugins/wato/check_mk_configuration.py
@@ -1257,8 +1257,57 @@ register_rule(group,
"service completely. Per default all notifications are enabled."),
choices = [ ("1", _("Enable service notifications")),
("0", _("Disable service notifications")) ],
+ ),
+ itemtype = "service"
+)
+
+register_rule(group,
+ "extra_host_conf:notification_options",
+ Transform(
+ ListChoice(
+ choices = [
+ ( "d", _("Host goes down")),
+ ( "u", _("Host gets unreachble")),
+ ( "r", _("Host goes up again")),
+ ( "f", _("Start or end of flapping state")),
+ ( "s", _("Start or end of a scheduled downtime")),
+ ],
+ default_value = [ "d", "u", "r", "f", "s" ],
),
- itemtype = "service")
+ title = _("Notified events for hosts"),
+ help = _("This ruleset allows you to restrict notifications of host problems to certain "
+ "states, e.g. only notify on DOWN, but not on UNREACHABLE. Please select the types "
+ "of events that should initiate notifications. Please note that several other "
+ "filters must also be passed in order for notifications to finally being sent out."),
+ forth = lambda x: x != 'n' and x.split(",") or [],
+ back = lambda x: ",".join(x) or "n",
+ ),
+)
+
+register_rule(group,
+ "extra_service_conf:notification_options",
+ Transform(
+ ListChoice(
+ choices = [
+ ("w", _("Service goes into warning state")),
+ ("u", _("Service goes into unknown state")),
+ ("c", _("Service goes into critical state")),
+ ("r", _("Service recovers to OK")),
+ ("f", _("Start or end of flapping state")),
+ ("s", _("Start or end of a scheduled downtime")),
+ ],
+ default_value = [ "w", "u", "c", "r", "f", "s" ],
+ ),
+ title = _("Notified events for services"),
+ help = _("This ruleset allows you to restrict notifications of service problems to certain "
+ "states, e.g. only notify on CRIT, but not on WARN. Please select the types "
+ "of events that should initiate notifications. Please note that several other "
+ "filters must also be passed in order for notifications to finally being sent out."),
+ forth = lambda x: x != 'n' and x.split(",") or [],
+ back = lambda x: ",".join(x) or "n",
+ ),
+ itemtype = "service"
+)
register_rule(group,
"extra_host_conf:notification_period",