From b83183824e11257954035c9b06cf65fcde010a67 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Wed, 11 Aug 2010 18:32:20 +0000 Subject: [PATCH] try to clean up NXOS incorrectly reported sensors git-svn-id: http://www.observium.org/svn/observer/trunk@1670 61d68cd4-352d-0410-923a-c4978735b2b8 --- includes/discovery/cisco-entity-sensor.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/discovery/cisco-entity-sensor.inc.php b/includes/discovery/cisco-entity-sensor.inc.php index 39fe915bf0..d15b2cda47 100644 --- a/includes/discovery/cisco-entity-sensor.inc.php +++ b/includes/discovery/cisco-entity-sensor.inc.php @@ -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");