mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
power frequencies in web interface, still needs an icon in the main menu
git-svn-id: http://www.observium.org/svn/observer/trunk@1096 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -39,7 +39,7 @@ while($voltage = mysql_fetch_array($sql))
|
||||
|
||||
$hostname = gethostbyid($voltage['device_id']);
|
||||
|
||||
$descr = substr(str_pad($voltage['volt_descr'], 17),0,17);
|
||||
$descr = substr(str_pad($voltage['volt_descr'], 15),0,15);
|
||||
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/" . safename("volt-" . $voltage['volt_descr'] . ".rrd");
|
||||
$volt_id = $voltage['volt_id'];
|
||||
|
||||
|
||||
@@ -183,6 +183,7 @@ echo('<li><a href="ports/?status=0"><img src="images/16/link_error.png" border="
|
||||
<li><a href="health/temperatures/"><img src="images/icons/temperature.png" border="0" align="absmiddle" /> Temperatures</a></li>
|
||||
<li><a href="health/fanspeeds/"><img src="images/icons/fans.png" border="0" align="absmiddle" /> Fans</a></li>
|
||||
<li><a href="health/voltages/"><img src="images/icons/voltages.png" border="0" align="absmiddle" /> Voltages</a></li>
|
||||
<li><a href="health/frequencies/"><img src="images/icons/voltages.png" border="0" align="absmiddle" /> Frequencies</a></li>
|
||||
</ul>
|
||||
</td></tr></table>
|
||||
<!--[if lte IE 6]></a><![endif]-->
|
||||
|
||||
@@ -6,6 +6,7 @@ $memory = mysql_result(mysql_query("select count(*) from mempools WHERE device_i
|
||||
$processor = mysql_result(mysql_query("select count(*) from processors WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
$fans = mysql_result(mysql_query("select count(*) from fanspeed WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
$volts = mysql_result(mysql_query("select count(*) from voltage WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
$freqs = mysql_result(mysql_query("select count(*) from frequency WHERE device_id = '" . $device['device_id'] . "'"), 0);
|
||||
|
||||
if ($processor) { $datas[] = 'processors'; }
|
||||
if ($memory) { $datas[] = 'memory'; }
|
||||
@@ -13,6 +14,7 @@ if ($storage) { $datas[] = 'storage'; }
|
||||
if ($temperatures) { $datas[] = 'temperatures'; }
|
||||
if ($fans) { $datas[] = 'fanspeeds'; }
|
||||
if ($volts) { $datas[] = 'voltages'; }
|
||||
if ($freqs) { $datas[] = 'frequencies'; }
|
||||
|
||||
$type_text['temperatures'] = "Temperatures";
|
||||
$type_text['memory'] = "Memory Pools";
|
||||
@@ -20,6 +22,7 @@ $type_text['storage'] = "Disk Usage";
|
||||
$type_text['processors'] = "Processor Usage";
|
||||
$type_text['voltages'] = "Voltages";
|
||||
$type_text['fanspeeds'] = "Fan Speeds";
|
||||
$type_text['frequencies'] = "Frequencies";
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
$datas = array('Processors','Memory','Storage','Temperatures', 'Voltages', 'Fanspeeds');
|
||||
$datas = array('Processors','Memory','Storage','Temperatures', 'Voltages', 'Fanspeeds', 'Frequencies');
|
||||
|
||||
if(!$_GET['opta']) { $_GET['opta'] = "processors"; }
|
||||
|
||||
@@ -30,6 +30,7 @@ switch ($_GET['opta'])
|
||||
case 'temperatures':
|
||||
case 'voltages':
|
||||
case 'fanspeeds':
|
||||
case 'frequencies':
|
||||
include('pages/health/'.$_GET['opta'].'.inc.php');
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user