mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Allow getting VDSL stats on "down" VDSL ports (#12753)
https://community.librenms.org/t/broken-vdsl-stats-after-update/11471/20
This commit is contained in:
@@ -738,9 +738,9 @@ foreach ($ports as $port) {
|
||||
if (! empty($port['skipped'])) {
|
||||
// We don't care about statistics for skipped selective polling ports
|
||||
d_echo("$port_id skipped because selective polling ports is set.");
|
||||
} elseif ($port['ifType'] != 'adsl' && $port['ifOperStatus'] == 'down' && $port['ifOperStatus_prev'] == 'down' && $this_port['ifOperStatus'] == 'down' && $this_port['ifLastChange'] == $port['ifLastChange']) {
|
||||
} elseif ($port['ifType'] != 'vdsl' && $port['ifType'] != 'adsl' && $port['ifOperStatus'] == 'down' && $port['ifOperStatus_prev'] == 'down' && $this_port['ifOperStatus'] == 'down' && $this_port['ifLastChange'] == $port['ifLastChange']) {
|
||||
// We don't care about statistics for down ports on which states did not change since last polling
|
||||
// We still take into account 'adsl' ports that may update speed/noise even if the interface is status down
|
||||
// We still take into account 'adsl' & 'vdsl' ports that may update speed/noise even if the interface is status down
|
||||
d_echo("$port_id skipped because port is still down since last polling.");
|
||||
} else {
|
||||
// End parse ifAlias
|
||||
|
Reference in New Issue
Block a user