mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	This log_event would always trigger if a port was admin down, we now skip over those interfaces
This commit is contained in:
		@@ -253,7 +253,7 @@ foreach ($ports as $port)
 | 
			
		||||
    // Update IF-MIB data
 | 
			
		||||
    foreach ($data_oids as $oid)
 | 
			
		||||
    {
 | 
			
		||||
      if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]))
 | 
			
		||||
      if ($port[$oid] != $this_port[$oid] && !isset($this_port[$oid]) && $this_port['ifAdminStatus'] != 'down')
 | 
			
		||||
      {
 | 
			
		||||
        $port['update'][$oid] = NULL;
 | 
			
		||||
        log_event($oid . ": ".$port[$oid]." -> NULL", $device, 'interface', $port['port_id']);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user