mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +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:
@@ -84,7 +84,7 @@ switch ($_GET['opta'])
|
|||||||
include('pages/health/'.$_GET['opta'].'.inc.php');
|
include('pages/health/'.$_GET['opta'].'.inc.php');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
include('pages/health/temperature.inc.php');
|
include('pages/health/temperature.inc.php'); # FIXME perhaps an error message instead?
|
||||||
break;
|
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');
|
||||||
|
|
||||||
|
?>
|
Reference in New Issue
Block a user