mirror of
https://github.com/librenms/librenms.git
synced 2024-09-27 05:18:10 +00:00
sensors, yay
git-svn-id: http://www.observium.org/svn/observer/trunk@2081 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
parent
f5ca2614e3
commit
166b2a0373
@ -84,7 +84,7 @@ switch ($_GET['opta'])
|
||||
include('pages/health/'.$_GET['opta'].'.inc.php');
|
||||
break;
|
||||
default:
|
||||
include('pages/health/temperature.inc.php');
|
||||
include('pages/health/temperature.inc.php'); # FIXME perhaps an error message instead?
|
||||
break;
|
||||
}
|
||||
|
||||
|
11
includes/polling/sensors.inc.php
Normal file
11
includes/polling/sensors.inc.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
poll_sensor($device,'current','A');
|
||||
poll_sensor($device,'frequency', 'Hz');
|
||||
poll_sensor($device,'fanspeed', 'rpm');
|
||||
poll_sensor($device,'humidity', '%');
|
||||
|
||||
# FIXME also convert temperature, but there's some special code in there?
|
||||
include('includes/polling/temperatures.inc.php');
|
||||
|
||||
?>
|
Loading…
Reference in New Issue
Block a user