Module: check_mk
Branch: master
Commit: 5bb6b35aa5621aae66a1ce4c33a744207e0c80ec
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5bb6b35aa5621a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Sep 13 13:31:49 2013 +0200
agent_vsphere.fast: fixed incorred hostsystem name
---
agents/special/agent_vsphere.fast | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/agents/special/agent_vsphere.fast b/agents/special/agent_vsphere.fast
index b1da2dc..35cfe6e 100755
--- a/agents/special/agent_vsphere.fast
+++ b/agents/special/agent_vsphere.fast
@@ -517,7 +517,8 @@ if not error:
print "<<<<>>>>"
print "<<<esx_vsphere_objects:sep(9)>>>"
if "hostsystem" in query_objects:
- print "hostsystem\t%s\t\t%s" % ( opt_hostname or host_address,
"".join(hostsystem_propsets["runtime.powerState"]) )
+ print "hostsystem\t%s\t\t%s" % (
hostsystem_propsets["name"][0],
"".join(hostsystem_propsets["runtime.powerState"]) )
+
if "virtualmachine" in query_objects:
for key in sorted(vms.keys()):