Module: check_mk
Branch: master
Commit: c9a6d6c367af503ac7deb5724ce3c8df69a49aef
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c9a6d6c367af50…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Sep 18 18:47:10 2014 +0200
vms: fixed incorrect runtime.host name
---
agents/special/agent_vsphere | 2 ++
1 file changed, 2 insertions(+)
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 12b034d..97fd671 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -853,6 +853,8 @@ if not error:
else:
# we don't need this in the agent output
del vm_data["config.hardware.device"]
+ if "runtime.host" in vm_data:
+ vm_data["runtime.host"] =
hostsystems.get(vm_data["runtime.host"], vm_data["runtime.host"])
vms[vm_data.get("name")] = vm_data