mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #675 from laf/issue-674
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
|
||||
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']);
|
||||
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];
|
||||
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 . " "); }
|
||||
|
Reference in New Issue
Block a user