mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	per-port SNMP polling. thanks to jonathan@studenteninternet.be
git-svn-id: http://www.observium.org/svn/observer/trunk@340 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -4,7 +4,7 @@ $query = "SELECT * FROM temperature WHERE temp_host = '" . $device['device_id']
 | 
			
		||||
$temp_data = mysql_query($query);
 | 
			
		||||
while($temperature = mysql_fetch_array($temp_data)) {
 | 
			
		||||
 | 
			
		||||
  $temp_cmd = "snmpget -O Uqnv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'] . " " . $temperature['temp_oid'];
 | 
			
		||||
  $temp_cmd = "snmpget -O Uqnv -" . $device['snmpver'] . " -c " . $device['community'] . " " . $device['hostname'].":".$device['port'] . " " . $temperature['temp_oid'];
 | 
			
		||||
  $temp = `$temp_cmd`;
 | 
			
		||||
 | 
			
		||||
  echo("Checking temp " . $temperature['temp_descr'] . "... ");
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user