mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-12 16:06:25 +02:00
This is a proper fix for PR 623 + 625
This commit is contained in:
@@ -253,12 +253,12 @@ foreach ($ports as $port)
|
|||||||
// Update IF-MIB data
|
// Update IF-MIB data
|
||||||
foreach ($data_oids as $oid)
|
foreach ($data_oids as $oid)
|
||||||
{
|
{
|
||||||
if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]) && $this_port['ifAdminStatus'] != 'down')
|
if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]))
|
||||||
{
|
{
|
||||||
$port['update'][$oid] = NULL;
|
$port['update'][$oid] = array('NULL');
|
||||||
log_event($oid . ": ".$port[$oid]." -> NULL", $device, 'interface', $port['port_id']);
|
log_event($oid . ": ".$port[$oid]." -> NULL", $device, 'interface', $port['port_id']);
|
||||||
if ($debug) { echo($oid . ": ".$port[$oid]." -> NULL "); } else { echo($oid . " "); }
|
if ($debug) { echo($oid . ": ".$port[$oid]." -> NULL "); } else { echo($oid . " "); }
|
||||||
} elseif ($port[$oid] != $this_port[$oid] && $this_port['ifAdminStatus'] != 'down') {
|
} elseif ($port[$oid] != $this_port[$oid]) {
|
||||||
$port['update'][$oid] = $this_port[$oid];
|
$port['update'][$oid] = $this_port[$oid];
|
||||||
log_event($oid . ": ".$port[$oid]." -> " . $this_port[$oid], $device, 'interface', $port['port_id']);
|
log_event($oid . ": ".$port[$oid]." -> " . $this_port[$oid], $device, 'interface', $port['port_id']);
|
||||||
if ($debug) { echo($oid . ": ".$port[$oid]." -> " . $this_port[$oid]." "); } else { echo($oid . " "); }
|
if ($debug) { echo($oid . ": ".$port[$oid]." -> " . $this_port[$oid]." "); } else { echo($oid . " "); }
|
||||||
|
|||||||
Reference in New Issue
Block a user