Module: check_mk
Branch: master
Commit: c547f7472f5e5845c7cbdca3c8229bd9ac1d997a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c547f7472f5e58…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu May 12 14:50:08 2016 +0200
3530 FIX agent_vsphere: improved performance, too much perfcounters were queried
---
.werks/3530 | 9 +++++++++
ChangeLog | 1 +
agents/special/agent_vsphere | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/3530 b/.werks/3530
new file mode 100644
index 0000000..6fb3fc3
--- /dev/null
+++ b/.werks/3530
@@ -0,0 +1,9 @@
+Title: agent_vsphere: improved performance, too much perfcounters were queried
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.9i1
+Date: 1463057382
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 3986c6c..536324f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -215,6 +215,7 @@
* 3573 FIX: ps: Fixed possible wrong matching of ps and ucb ps commands
* 3131 FIX: if64, if64adm: These checks now display the speed of interfaces slower
than 1Mbit correctly...
* 3470 FIX: mounts: Fix exception when displaying check parameters in WATO services
list...
+ * 3530 FIX: agent_vsphere: improved performance, too much perfcounters were queried
Multisite:
* 3187 notification view: new filter for log command via regex
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index f70284f..eb23c67 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -1312,7 +1312,7 @@ if not error:
max_samples = 3
if last_cookie_access_time:
timedelta = time.time() - last_cookie_access_time
- max_samples = min(180, max(1, int(timedelta) / 2))
+ max_samples = min(180, max(1, int(timedelta) / 20))
hostnames = hostsystems.keys()
counter_data_payload = telegram_list["perfcounterdata"]