try to clean up NXOS incorrectly reported sensors

git-svn-id: http://www.observium.org/svn/observer/trunk@1670 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-08-11 18:32:20 +00:00
parent 0db6ad08ff
commit b83183824e
@@ -133,7 +133,9 @@ if ($device['os'] == "ios" || $device['os_group'] == "ios")
$ok = TRUE;
if($current == "-127") { $ok = FALSE; }
if($current == "-127") { $ok = FALSE; } ## False reading
# if($type == "temperature" && $current < 1) { $ok = FALSE; } ## False reading. Temperature <1 :)
if($descr == "") { $ok = FALSE; } ## Invalid description. Lots of these on Nexus
if($ok) {
# echo("\n$valid_sensor, $type, $device, $oid, $index, 'cisco-entity-sensor', $descr, $divisor, $multiplier, $limit_low, $warn_limit_low, $limit, $warn_limit, $current");