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:
Tom Laermans
2011-04-21 12:56:25 +00:00
parent 8e36ec56a2
commit 73e9c628e6
5 changed files with 16 additions and 3 deletions

View File

@@ -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>');