mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	This should address issue #192
This commit is contained in:
		
							
								
								
									
										9
									
								
								includes/polling/os/dlink.inc.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								includes/polling/os/dlink.inc.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
$Descr_string = snmp_get($device, "sysDescr.0", "-Oqv", "SNMPv2-MIB");
 | 
			
		||||
$Descr_chopper = preg_split("/[ ]+/", "$Descr_string");
 | 
			
		||||
 | 
			
		||||
$version = "Firmware " . $Descr_chopper[1];
 | 
			
		||||
$hardware = $Descr_chopper[0] . " Rev. " . str_replace('"', "", snmp_get($device, "1.3.6.1.4.1.171.10.76.10.1.2.0", "-Oqv"));
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user