Module: check_mk
Branch: master
Commit: 71235bf017dc5a0425a9394264c135643501ac9c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=71235bf017dc5a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 17 10:36:24 2013 +0100
FIX agent_vsphere.pysphere: Trying to deal with permissions only on some guests/hosts
---
.werks/378 | 10 ++++++++++
ChangeLog | 1 +
agents/special/agent_vsphere.pysphere | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/378 b/.werks/378
new file mode 100644
index 0000000..45dc7e9
--- /dev/null
+++ b/.werks/378
@@ -0,0 +1,10 @@
+Title: agent_vsphere.pysphere: Trying to deal with permissions only on some guests/hosts
+Level: 1
+Component: checks
+Class: fix
+State: unknown
+Version: 1.2.5i1
+Date: 1387272959
+Targetversion: future
+
+
diff --git a/ChangeLog b/ChangeLog
index 6796b3d..05c6fd8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -45,6 +45,7 @@
* 0370 FIX: brocade_mlx_module*: Improved output of checks
* 0372 FIX: megaraid_ldisks: Ignoring adapters without configured logical disks...
* 0345 FIX: Linux agent: fix detaching of background plugins...
+ * 0378 FIX: agent_vsphere.pysphere: Trying to deal with permissions only on some
guests/hosts
Multisite:
* 0371 Added log class filter to hostsvcevents view
diff --git a/agents/special/agent_vsphere.pysphere
b/agents/special/agent_vsphere.pysphere
index e09b10d..2e26e18 100755
--- a/agents/special/agent_vsphere.pysphere
+++ b/agents/special/agent_vsphere.pysphere
@@ -603,7 +603,7 @@ def output_mors(what, properties, direct=False):
if type(value) == tuple:
sections.append(value)
else:
- if name == 'runtime.host':
+ if name == 'runtime.host' and value:
running_on = value
elif name == 'runtime.powerState':
power_state = value