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@3240 61d68cd4-352d-0410-923a-c4978735b2b8
		
			
				
	
	
		
			31 lines
		
	
	
		
			982 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			982 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
/* Observium Network Management and Monitoring System
 | 
						|
 * Copyright (C) 2006-2011, Observium Developers - http://www.observium.org
 | 
						|
 *
 | 
						|
 * This program is free software: you can redistribute it and/or modify
 | 
						|
 * it under the terms of the GNU General Public License as published by
 | 
						|
 * the Free Software Foundation, either version 3 of the License, or
 | 
						|
 * (at your option) any later version.
 | 
						|
 *
 | 
						|
 * See COPYING for more details.
 | 
						|
 */
 | 
						|
 | 
						|
// Call poll_sensor for each sensor type that we support.
 | 
						|
 | 
						|
$supported_sensors = array('current' => 'A',
 | 
						|
                           'frequency' => 'Hz',
 | 
						|
                           'humidity' => '%',
 | 
						|
                           'fanspeed' => 'rpm',
 | 
						|
                           'power' => 'W',
 | 
						|
                           'voltage' => 'V',
 | 
						|
                           'temperature' => 'C',
 | 
						|
                           'dbm' => 'dBm');
 | 
						|
 | 
						|
foreach ($supported_sensors as $sensor_type => $sensor_unit)
 | 
						|
{
 | 
						|
  poll_sensor($device, $sensor_type, $sensor_unit);
 | 
						|
}
 | 
						|
 | 
						|
?>
 |