Module: check_mk
Branch: master
Commit: 77f8c5a2451a19cf3270f82f28ac1ec1134413dc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=77f8c5a2451a19…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Jan 20 16:41:50 2015 +0100
new section for inventory checks: esx_systeminfo
---
agents/special/agent_vsphere | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index ea61a51..505aa9d 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -559,7 +559,11 @@ systemfields = [
("perfManager", None),
("sessionManager", None),
("licenseManager", None),
- ("propertyCollector", None)
+ ("propertyCollector", None),
+ ("version", None),
+ ("build", None),
+ ("vendor", None),
+ ("osType", None),
]
systeminfo = {}
@@ -688,6 +692,10 @@ if not error:
print "Version: %.1f" % systeminfo["apiVersion"]
print "AgentOS: %s" % systeminfo["name"]
+ print "<<<esx_systeminfo>>>"
+ for entry in systeminfo.items():
+ print "%s %s" % entry
+
###########################
# Licenses
###########################