mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Fixed Avtech discovery (#10163)
* Fix Avtech discovery pre-cache stored the data incorrectly * Fix RA-4E external sensors sen1 had incorrect oids (duplicate of sen2) Description oid from data doesn't match the mib, perhaps outdated MIB? * add test data * Updated 4E MIB
This commit is contained in:
		
				
					committed by
					
						
						Neil Lathwood
					
				
			
			
				
	
			
			
			
						parent
						
							308145d2da
						
					
				
				
					commit
					3e7970b814
				
			@@ -23,17 +23,17 @@ modules:
 | 
			
		||||
                index: 0
 | 
			
		||||
                descr: .1.3.6.1.4.1.20916.1.6.1.1.2.1.0
 | 
			
		||||
              - # RoomAlert 4E sen1
 | 
			
		||||
                oid: .1.3.6.1.4.1.20916.1.6.1.2.2.1.0
 | 
			
		||||
                num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.2.1.{{ $index }}'
 | 
			
		||||
                oid: .1.3.6.1.4.1.20916.1.6.1.2.1.1.0
 | 
			
		||||
                num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.1.1.{{ $index }}'
 | 
			
		||||
                divisor: 1
 | 
			
		||||
                index: 1
 | 
			
		||||
                descr: .1.3.6.1.4.1.20916.1.6.1.2.1.6.0
 | 
			
		||||
                descr: .1.3.6.1.4.1.20916.1.6.1.2.1.8.0
 | 
			
		||||
              - # RoomAlert 4E sen2
 | 
			
		||||
                oid: .1.3.6.1.4.1.20916.1.6.1.2.2.1.0
 | 
			
		||||
                num_oid: '.1.3.6.1.4.1.20916.1.6.1.2.2.1.{{ $index }}'
 | 
			
		||||
                divisor: 1
 | 
			
		||||
                index: 2
 | 
			
		||||
                descr: .1.3.6.1.4.1.20916.1.6.1.2.2.6.0
 | 
			
		||||
                descr: .1.3.6.1.4.1.20916.1.6.1.2.2.8.0
 | 
			
		||||
 | 
			
		||||
              - # RoomAlert 11E sensor 2
 | 
			
		||||
                oid: .1.3.6.1.4.1.20916.1.3.1.2.1.0
 | 
			
		||||
 
 | 
			
		||||
@@ -51,7 +51,7 @@ foreach (explode(PHP_EOL, $data) as $line) {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    if (!$processed) {
 | 
			
		||||
        $pre_cache[$oid] = [$value];
 | 
			
		||||
        $pre_cache[$oid] = [[$oid => $value]];
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user