mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user