Module: check_mk
Branch: master
Commit: 95a0c61baa7fff31436231375fdd976cf5742473
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=95a0c61baa7fff…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 5 12:51:13 2016 +0100
Added new button to ruleset "Clustered Services" for cluster hosts
---
web/htdocs/wato.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 736e571..b2f188b 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1212,6 +1212,10 @@ def mode_edit_host(phase, new, is_cluster):
if config.may('wato.rulesets'):
html.context_button(_("Parameters"),
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")
+
if config.may("wato.rename_hosts") and not
Folder.current().locked_hosts():
html.context_button(_("Rename %s") % (is_cluster and
_("Cluster") or _("Host")),
folder_preserving_link([("mode", "rename_host"),
("host", hostname)]), "rename_host")