mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Extend FS switches support, handle lowerLayerDown ifOperStatus (#10904)
* extend FS switches support * MIB compilation * HW and Ver * sensors and CPU * tests * correct version * try to handle properly "down" as not up, for OperStat like lowerLayerDown * try to handle properly "down" as not up, for OperStat like lowerLayerDown * try to handle properly "down" as not up, for OperStat like lowerLayerDown * try to replace "down" with "not up" :) * fix other ifOperStatus checks
This commit is contained in:
@@ -246,8 +246,9 @@ if ($device['os'] === 'f5' && (version_compare($device['version'], '11.2.0', '>=
|
||||
// if admin down or operator down since the last poll, skip polling this port
|
||||
$admin_down = $port['ifAdminStatus_prev'] === 'down' && $port_stats[$ifIndex]['ifAdminStatus'] === 'down';
|
||||
$oper_down = $port['ifOperStatus_prev'] === 'down' && $port_stats[$ifIndex]['ifOperStatus'] === 'down';
|
||||
$ll_down = $port['ifOperStatus_prev'] === 'lowerLayerDown' && $port_stats[$ifIndex]['ifOperStatus'] === 'lowerLayerDown';
|
||||
|
||||
if ($admin_down || $oper_down) {
|
||||
if ($admin_down || $oper_down || $ll_down) {
|
||||
if ($admin_down) {
|
||||
d_echo(" port $ifIndex is still admin down\n");
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user