mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Reduce DB polling while getting SNMP data (#11162)
This commit is contained in:
		@@ -172,7 +172,7 @@ function gen_snmp_cmd($cmd, $device, $oids, $options = null, $mib = null, $mibdi
 | 
			
		||||
        array_push($cmd, '-r', $retries);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    $pollertarget = Device::pollerTarget($device['hostname']);
 | 
			
		||||
    $pollertarget = Device::pollerTarget($device);
 | 
			
		||||
    $cmd[] = $device['transport'].':'.$pollertarget.':'.$device['port'];
 | 
			
		||||
    $cmd = array_merge($cmd, (array)$oids);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user