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:
@@ -59,7 +59,7 @@ foreach (getlocations() as $location_row) {
|
||||
} elseif (\LibreNMS\Config::get('frontpage_globe.markers') == 'ports') {
|
||||
foreach (dbFetchRows("SELECT ifName,ifOperStatus,ifAdminStatus FROM ports WHERE ports.device_id = ? && ports.ignore = 0 && ports.disabled = 0 && ports.deleted = 0", array($device['device_id'])) as $port) {
|
||||
$count++;
|
||||
if ($port['ifOperStatus'] == 'down' && $port['ifAdminStatus'] == 'up') {
|
||||
if ($port['ifOperStatus'] != 'up' && $port['ifAdminStatus'] == 'up') {
|
||||
$down++;
|
||||
$devices_down[] = $device['hostname']."/".$port['ifName']." DOWN";
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user