mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	git-svn-id: http://www.observium.org/svn/observer/trunk@1943 61d68cd4-352d-0410-923a-c4978735b2b8
		
			
				
	
	
		
			14 lines
		
	
	
		
			229 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			229 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
if (!$os)
 | 
						|
{
 | 
						|
  if (preg_match('/.+Firmware Version \d+-\d+-\d+.+/', $sysDescr))
 | 
						|
  {
 | 
						|
    if (is_numeric(snmp_get($device, ".1.3.6.1.4.1.22626.1.5.2.1.3.0", "-Oqv", "")))
 | 
						|
    {
 | 
						|
      $os = "cometsystem-p85xx";
 | 
						|
    }
 | 
						|
  }
 | 
						|
}
 | 
						|
 | 
						|
?>
 |