Module: check_mk
Branch: master
Commit: 372b5c1b1a8f9dfa57a74306a70d6fd6373585f0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=372b5c1b1a8f9d…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 26 11:13:57 2014 +0100
#1535 Disabled services on service discovery page now link to the ruleset
---
.werks/1535 | 10 ++++++++++
ChangeLog | 1 +
web/htdocs/wato.py | 7 +++++++
3 files changed, 18 insertions(+)
diff --git a/.werks/1535 b/.werks/1535
new file mode 100644
index 0000000..b2501ec
--- /dev/null
+++ b/.werks/1535
@@ -0,0 +1,10 @@
+Title: Disabled services on service discovery page now link to the ruleset
+Level: 1
+Component: wato
+Class: feature
+Compatible: compat
+State: unknown
+Version: 1.2.5i7
+Date: 1416996809
+
+
diff --git a/ChangeLog b/ChangeLog
index b218b6e..443a2f4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -75,6 +75,7 @@
* 1489 Added iCalendar import for generating timeperiods e.g. for holidays...
* 1495 Most WATO tables can now be sorted (where useful)...
* 1504 WATO makes host tag and group information available for NagVis...
+ * 1535 Disabled services on service discovery page now link to the ruleset
* 1165 FIX: Fixed exception in service discovery of logwatch event console forwarding
checks...
* 1490 FIX: Timperiod excludes can now even be configured when creating a
timeperiod...
* 1491 FIX: Fixed bug in dynamic lists where removing an item was not always
possible...
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 5305e9d..3ccd0c1 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -3292,6 +3292,13 @@ def show_service_table(host, firsttime):
("item", mk_repr(item))])
html.icon_button(url, _("Edit and analyze the check parameters of
this service"), "check_parameters")
+ if state_type == "ignored":
+ url = make_link([("mode", "edit_ruleset"),
+ ("varname", "ignored_services"),
+ ("host", hostname),
+ ("item", mk_repr(descr))])
+ html.icon_button(url, _("Edit and analyze the disabled services
rules"), "ignore")
+
# Permanently disable icon
if state_type in ['new', 'old']:
url = make_link([