Module: check_mk
Branch: master
Commit: b5a82bb0860d0627bc9c9324da3746158fcb3939
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b5a82bb0860d06…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 5 13:09:09 2016 +0100
Add link to clustered services also for services pages
---
web/htdocs/wato.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index b2f188b..0f3dd16 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1214,7 +1214,7 @@ def mode_edit_host(phase, new, is_cluster):
folder_preserving_link([("mode",
"object_parameters"), ("host", hostname)]), "rulesets")
if is_cluster:
html.context_button(_("Clustered Services"),
- folder_preserving_link([("mode",
"edit_ruleset"), ("host", hostname), ("varname",
"clustered_services")]), "rulesets")
+ folder_preserving_link([("mode",
"edit_ruleset"), ("varname", "clustered_services")]),
"rulesets")
if config.may("wato.rename_hosts") and not
Folder.current().locked_hosts():
html.context_button(_("Rename %s") % (is_cluster and
_("Cluster") or _("Host")),
@@ -2610,6 +2610,9 @@ def mode_inventory(phase, firsttime):
if config.may('wato.rulesets'):
html.context_button(_("Parameters"),
folder_preserving_link([("mode",
"object_parameters"), ("host", hostname)]), "rulesets")
+ if host.is_cluster():
+ html.context_button(_("Clustered Services"),
+ folder_preserving_link([("mode", "edit_ruleset"),
("varname", "clustered_services")]), "rulesets")
if not host.is_cluster():
# only display for non cluster hosts
html.context_button(_("Diagnostic"),