Module: check_mk
Branch: master
Commit: fc24255ae328bbe8433572217d43a558daa8ee8e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fc24255ae328bb…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Apr 16 16:39:00 2013 +0200
agent_vsphere: ignore unknown (missing) sensors
---
agents/special/agent_vsphere | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 49998dc..962fc19 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -343,7 +343,7 @@ def conv_numeric_sensor_info(value):
for sensor in value.HostNumericSensorInfo:
if not hasattr(sensor, "HealthState"):
continue # should never happen. If happens, sensor not interesting for
monitoring
- if sensor.HealthState.Key == "green":
+ if (sensor.HealthState.Key == "green") or (sensor.HealthState.Key ==
"unknown"):
continue # just output sensors with issuse - saves lots of data
line = '%s;%s;%s;%s;%s;' % ( sensor.Name, sensor.BaseUnits,
sensor.CurrentReading, sensor.SensorType, sensor.UnitModifier)