Module: check_mk
Branch: master
Commit: 1f0555037ae4ad44f9b128d51ca3b3c5c038baf5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1f0555037ae4ad…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Nov 27 11:54:13 2015 +0100
rename hosts also covers agent deployment status now
---
modules/automation.py | 5 +++++
web/htdocs/wato.py | 53 +++++++++++++++++++++++++------------------------
2 files changed, 32 insertions(+), 26 deletions(-)
diff --git a/modules/automation.py b/modules/automation.py
index ba5d386..b11b83c 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -782,6 +782,11 @@ def rename_host_files(oldname, newname):
if have_renamed_agent:
actions.append("agent")
+ # Agent deployment
+ deployment_dir = var_dir + "/agent_deployment/"
+ if rename_host_file(deployment_dir, oldname, newname):
+ actions.append("agent_deployment")
+
# OMD-Stuff. Note: The question really is whether this should be
# included in Check_MK. The point is - however - that all these
# actions need to take place while the core is stopped.
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 7d578e3..c8e6644 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -2866,32 +2866,33 @@ def rename_hosts(renamings):
def render_renaming_actions(action_counts):
action_titles = {
- "folder" : _("WATO folder"),
- "notify_user" : _("Users' notification rule"),
- "notify_global" : _("Global notification rule"),
- "notify_flexible" : _("Flexible notification rule"),
- "wato_rules" : _("Host and service configuration
rule"),
- "alert_rules" : _("Alert handler rule"),
- "parents" : _("Parent definition"),
- "cluster_nodes" : _("Cluster node definition"),
- "bi" : _("BI rule or aggregation"),
- "favorites" : _("Favorite entry of user"),
- "cache" : _("Cached output of monitoring agent"),
- "counters" : _("File with performance counter"),
- "agent" : _("Baked host specific agent"),
- "piggyback-load" : _("Piggyback information from other
host"),
- "piggyback-pig" : _("Piggyback information for other
hosts"),
- "autochecks" : _("Auto-disovered services of the
host"),
- "logwatch" : _("Logfile information of logwatch
plugin"),
- "snmpwalk" : _("A stored SNMP walk"),
- "rrd" : _("RRD databases with performance
data"),
- "rrdcached" : _("RRD updates in journal of RRD
Cache"),
- "pnpspool" : _("Spool files of PNP4Nagios"),
- "nagvis" : _("NagVis map"),
- "history" : _("Monitoring history entries (events and
availability)"),
- "retention" : _("The current monitoring state (including
acknowledgements and downtimes)"),
- "inv" : _("Recent hardware/software inventory"),
- "invarch" : _("History of hardware/software
inventory"),
+ "folder" : _("WATO folder"),
+ "notify_user" : _("Users' notification rule"),
+ "notify_global" : _("Global notification rule"),
+ "notify_flexible" : _("Flexible notification rule"),
+ "wato_rules" : _("Host and service configuration
rule"),
+ "alert_rules" : _("Alert handler rule"),
+ "parents" : _("Parent definition"),
+ "cluster_nodes" : _("Cluster node definition"),
+ "bi" : _("BI rule or aggregation"),
+ "favorites" : _("Favorite entry of user"),
+ "cache" : _("Cached output of monitoring agent"),
+ "counters" : _("File with performance counter"),
+ "agent" : _("Baked host specific agent"),
+ "agent_deployment" : _("Agent deployment status"),
+ "piggyback-load" : _("Piggyback information from other
host"),
+ "piggyback-pig" : _("Piggyback information for other
hosts"),
+ "autochecks" : _("Auto-disovered services of the
host"),
+ "logwatch" : _("Logfile information of logwatch
plugin"),
+ "snmpwalk" : _("A stored SNMP walk"),
+ "rrd" : _("RRD databases with performance
data"),
+ "rrdcached" : _("RRD updates in journal of RRD
Cache"),
+ "pnpspool" : _("Spool files of PNP4Nagios"),
+ "nagvis" : _("NagVis map"),
+ "history" : _("Monitoring history entries (events and
availability)"),
+ "retention" : _("The current monitoring state (including
acknowledgements and downtimes)"),
+ "inv" : _("Recent hardware/software
inventory"),
+ "invarch" : _("History of hardware/software
inventory"),
}
texts = []