Module: check_mk
Branch: master
Commit: ef89056126b6c42c5b654a3125d8672c5e064ee2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ef89056126b6c4…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Mar 9 17:20:55 2016 +0100
update for WK3004
---
agents/special/agent_vsphere | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index f441bbb..87eb4a7 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -1622,10 +1622,10 @@ if not error:
for key in vms.keys():
data = vms[key]
running_on = hostsystems.get(data.get("runtime.host"),
data.get("runtime.host"))
- vm_info = "virtualmachine\t%s\t%s\t%s" %
(convert_hostname(data.get("name")), running_on,
data.get("runtime.powerState"))
+ vm_info = "virtualmachine\t%s\t%s\t%s" %
(convert_hostname(key), running_on, data.get("runtime.powerState"))
if opt_vm_pwr_display == "vm":
- vm_name = convert_hostname(data.get("name"))
+ vm_name = convert_hostname(key)
vm_piggy_data.setdefault(vm_name, []).append(vm_info)
elif opt_vm_pwr_display == "esxhost" and not opt_direct:
host_piggy_data.setdefault(running_on, []).append(vm_info)
@@ -1646,7 +1646,7 @@ if not error:
continue
vm_info = "hostsystem\t%s\t\t%s" % (running_on,
hostsystems_properties[vm_host]["runtime.powerState"][0])
- vm_name = convert_hostname(data.get("name"))
+ vm_name = convert_hostname(key)
vm_piggy_data.setdefault(vm_name, []).append(vm_info)
for entries in [ host_piggy_data, vm_piggy_data ]: