mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add power polling for non-ipmi, unfortunately ipoman supplies kwH used, not current wattage
git-svn-id: http://www.observium.org/svn/observer/trunk@2125 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -204,7 +204,7 @@ if ($deleted_ports) { echo('<li><a href="ports/deleted/"><img src="images/16/cro
|
||||
<?php
|
||||
|
||||
# FIXME does not check user permissions...
|
||||
$sql = "SELECT sensor_class,COUNT(sensor_id) AS c FROM sensors GROUP BY sensor_class";
|
||||
$sql = "SELECT sensor_class,COUNT(sensor_id) AS c FROM sensors GROUP BY sensor_class ORDER BY sensor_class ";
|
||||
$result = mysql_query($sql);
|
||||
while ($row = mysql_fetch_assoc($result))
|
||||
{
|
||||
@@ -254,6 +254,7 @@ foreach (array('current','frequency','power','voltage') as $item)
|
||||
}
|
||||
}
|
||||
|
||||
# Show remaining/custom sensor types if there are any in the database
|
||||
if ($menu_sensors && $sep)
|
||||
{
|
||||
echo('<li><hr width="140" /></li>');
|
||||
|
Reference in New Issue
Block a user