mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Add fortigate support, many thanks to Matthias Cramer (matthias dot cramer at iway dot ch)
git-svn-id: http://www.observium.org/svn/observer/trunk@2986 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		
							
								
								
									
										23
									
								
								includes/discovery/processors/fortigate.inc.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								includes/discovery/processors/fortigate.inc.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,23 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
##
 | 
			
		||||
##  Hardcoded discovery of cpu usage on Fortigate devices.
 | 
			
		||||
##
 | 
			
		||||
##  FORTINET-FORTIGATE-MIB::fgSysCpuUsage.0
 | 
			
		||||
 | 
			
		||||
if ($device['os'] == "fortigate")
 | 
			
		||||
{
 | 
			
		||||
  echo("Fortigate : ");
 | 
			
		||||
 | 
			
		||||
  $descr = "Processor";
 | 
			
		||||
  $usage = snmp_get($device, ".1.3.6.1.4.1.12356.101.4.1.3.0", "-Ovq");
 | 
			
		||||
 | 
			
		||||
  if (is_numeric($usage))
 | 
			
		||||
  {
 | 
			
		||||
    discover_processor($valid['processor'], $device, ".1.3.6.1.4.1.12356.101.4.1.3.0", "0", "fortigate-fixed", $descr, "1", $usage, NULL, NULL);
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
unset ($processors_array);
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user