Module: check_mk
Branch: master
Commit: 789d48ab9851cf64750ee1667b2b3ba7eb357af6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=789d48ab9851cf…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Wed May 23 11:36:29 2018 +0200
Remove '<<<check_mk>>>' section from agent output.
The section is renamed to '<<<esx_systeminfo>>>' and the
keys are changed to the more appropriate 'apiVersion' and 'name'.
These are also used in agent_vsphere.
Change-Id: Id8ae9d4f3a795bfcd2f51f318a9586e7a4d90e8b
---
agents/special/agent_vsphere.pysphere | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/agents/special/agent_vsphere.pysphere
b/agents/special/agent_vsphere.pysphere
index 6389333..b3d8fa9 100755
--- a/agents/special/agent_vsphere.pysphere
+++ b/agents/special/agent_vsphere.pysphere
@@ -250,9 +250,11 @@ if error:
esx_version = host.get_api_version()
esx_version_num = float(esx_version)
-print "<<<check_mk>>>"
-print "Version: %s" % esx_version
-print "AgentOS: %s " % host.get_server_type()
+# use the same section and keys as in
+# agent_vsphere
+print "<<<esx_systeminfo>>>"
+print "apiVersion %s" % esx_version
+print "name %s" % host.get_server_type()
# Prepare list of all hosts systems
all_hosts = host.get_hosts()