Module: check_mk
Branch: master
Commit: 3dce7bb36f26100c1ab67eaede823654d5a26716
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3dce7bb36f2610…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Mon Jul 3 11:57:37 2017 +0200
4841 FIX esx_vsphere_hostsystem.cpu_usage: fixed missing cpu checks when querying vcenter
with windows agent
Change-Id: Ib8c4b01273033f10fcd21dc3bc818207e9056613
---
.werks/4841 | 10 ++++++++++
agents/special/agent_vsphere | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4841 b/.werks/4841
new file mode 100644
index 0000000..9577877
--- /dev/null
+++ b/.werks/4841
@@ -0,0 +1,10 @@
+Title: esx_vsphere_hostsystem.cpu_usage: fixed missing cpu checks when querying vcenter
with windows agent
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1499075778
+Class: fix
+
+
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index a162930..9424d01 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -1490,7 +1490,7 @@ if not error:
# Special handling. If the windows may report winperf_processor
in the following call
# remove summary.quickStats.overallCpuUsage from the output. This
would lead to a
# duplicate "CPU utlization" service
- if opt_agent and key ==
"summary.quickStats.overallCpuUsage":
+ if opt_direct and opt_agent and key ==
"summary.quickStats.overallCpuUsage":
postprocess_functions.append(("%s %s" % (key,
" ".join(properties[key])), check_winperf_processor))
output("%s %s" % (key, "
".join(properties[key])))