mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Supress further event-log message if ifAdminStatus or ifOperStatus is down.
This commit is contained in:
@ -251,8 +251,12 @@ foreach ($ports as $port)
|
||||
echo("VLAN == ".$this_port['ifVlan']);
|
||||
|
||||
// Update IF-MIB data
|
||||
$brk = false;
|
||||
foreach ($data_oids as $oid)
|
||||
{
|
||||
if( $brk === true ) {
|
||||
break;
|
||||
}
|
||||
if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]))
|
||||
{
|
||||
$port['update'][$oid] = array('NULL');
|
||||
@ -263,6 +267,9 @@ foreach ($ports as $port)
|
||||
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( ( $oid == 'ifOperStatus' || $oid == 'ifAdminStatus' ) && $this_port[$oid] == 'down' ) {
|
||||
$brk = true;
|
||||
}
|
||||
}
|
||||
|
||||
// Parse description (usually ifAlias) if config option set
|
||||
|
Reference in New Issue
Block a user