mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fix typo in Cisco sensor disco (#7731)
This commit is contained in:
committed by
Neil Lathwood
parent
c6a0c9d124
commit
b6e6ab53d4
@@ -123,7 +123,7 @@ if ($device['os_group'] == 'cisco') {
|
||||
|
||||
// Set thresholds to null
|
||||
$limit = null;
|
||||
$low_limit = null;
|
||||
$limit_low = null;
|
||||
$warn_limit = null;
|
||||
$warn_limit_low = null;
|
||||
|
||||
@@ -153,13 +153,9 @@ if ($device['os_group'] == 'cisco') {
|
||||
// End Threshold code
|
||||
$ok = true;
|
||||
|
||||
if ($current == '-127') {
|
||||
if ($current == '-127' || $descr == '') {
|
||||
$ok = false;
|
||||
} //end if
|
||||
// if ($type == "temperature" && $current < 1) { $ok = FALSE; } // False reading. Temperature <1 :)
|
||||
if ($descr == '') {
|
||||
$ok = false;
|
||||
} //end if
|
||||
}
|
||||
|
||||
if ($ok) {
|
||||
$phys_index = $entity_array[$index]['entPhysicalContainedIn'];
|
||||
|
Reference in New Issue
Block a user