Module: check_mk
Branch: master
Commit: d974bbc70c20c410c5ff548e84c0741f9dc968da
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d974bbc70c20c4…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Dec 19 14:56:38 2013 +0100
FIX esx_vsphere_sensors: Fix garbled output in case of placeholder VMs
When using placeholder VMs in the section of <tt>esx_vsphere_sensors</tt>
appeared
some debug output. That lead to assuming an <tt>UNKNOWN</tt> state for the
sensors
check. This has been fixed.
---
.werks/435 | 12 ++++++++++++
ChangeLog | 1 +
agents/special/agent_vsphere | 1 -
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/435 b/.werks/435
new file mode 100644
index 0000000..4dd98ac
--- /dev/null
+++ b/.werks/435
@@ -0,0 +1,12 @@
+Title: esx_vsphere_sensors: Fix garbled output in case of placeholder VMs
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387461316
+Targetversion: future
+
+When using placeholder VMs in the section of <tt>esx_vsphere_sensors</tt>
appeared
+some debug output. That lead to assuming an <tt>UNKNOWN</tt> state for the
sensors
+check. This has been fixed.
diff --git a/ChangeLog b/ChangeLog
index b4eb283..3d213c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -70,6 +70,7 @@
* 0351 FIX: local: Catch invalid state codes and map to 3 (UNKNOWN)...
* 0397 FIX: mrpe: tolerate performance variable names with spaces...
* 0399 FIX: check_ftp: cleanup configuration via WATO, remove Hostname field...
+ * 0435 FIX: esx_vsphere_sensors: Fix garbled output in case of placeholder VMs...
Multisite:
* 0371 Added log class filter to hostsvcevents view
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 525c1dd..f65eae0 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -544,7 +544,6 @@ if not error:
def is_placeholder_vm(devices):
elements = get_pattern("<VirtualDevice
xsi:type=\"([^\"]+)", devices)
- pprint.pprint(elements)
if "VirtualDisk" not in elements:
return True
return False