mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Added ifOperStatus and ifAdminStatus _prev values to db.
This commit is contained in:
		| @@ -410,6 +410,9 @@ foreach ($ports as $port) { | ||||
|                     } | ||||
|                 } | ||||
|                 $port['update'][$oid] = $this_port[$oid]; | ||||
|                 if ($oid == 'ifOperStatus' || $oid == 'ifAdminStatus') { | ||||
|                     $port['update'][$oid.'_prev'] = $port[$oid]; | ||||
|                 } | ||||
|                 log_event($oid.': '.$port[$oid].' -> '.$this_port[$oid], $device, 'interface', $port['port_id']); | ||||
|                 if ($debug) { | ||||
|                     d_echo($oid.': '.$port[$oid].' -> '.$this_port[$oid].' '); | ||||
|   | ||||
							
								
								
									
										2
									
								
								sql-schema/099.sql
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								sql-schema/099.sql
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,2 @@ | ||||
| ALTER TABLE  `ports` ADD  `ifOperStatus_prev` VARCHAR( 16 ) NULL AFTER  `ifOperStatus` ; | ||||
| ALTER TABLE  `ports` ADD  `ifAdminStatus_prev` VARCHAR( 16 ) NULL AFTER  `ifAdminStatus` ; | ||||
		Reference in New Issue
	
	Block a user