push more state to memcached fix sensors poller to not retry all temperature sensors where return >9000 5 times (lmsensors returns milliC, so 30000 for 30C)

git-svn-id: http://www.observium.org/svn/observer/trunk@3244 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2012-05-25 18:35:17 +00:00
parent 08bb2d16ec
commit 1d4b392876
9 changed files with 82 additions and 33 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ function poll_sensor($device, $class, $unit)
if ($debug) echo("Attempt $i ");
$sensor_value = trim(str_replace("\"", "", snmp_get($device, $sensor['sensor_oid'], "-OUqnv", "SNMPv2-MIB")));
if ($sensor_value < 9000) break; # TME sometimes sends 999.9 when it is right in the middle of an update;
if (is_numeric($sensor_value) && $sensor_value != 9999) break; # TME sometimes sends 999.9 when it is right in the middle of an update;
sleep(1); # Give the TME some time to reset
}
} else {