mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
fix memory graphs on health, add headers to memory and processor, make health menu entries singular
git-svn-id: http://www.observium.org/svn/observer/trunk@2077 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -73,7 +73,7 @@ print_optionbar_end();
|
||||
switch ($_GET['opta'])
|
||||
{
|
||||
case 'processor':
|
||||
case 'memory':
|
||||
case 'mempool':
|
||||
case 'storage':
|
||||
case 'temperature':
|
||||
case 'humidity':
|
||||
|
||||
@@ -4,6 +4,15 @@ $graph_type = "mempool_usage";
|
||||
|
||||
echo("<div style='margin-top: 5px; padding: 0px;'>");
|
||||
echo("<table width=100% cellpadding=6 cellspacing=0>");
|
||||
|
||||
echo("<tr class=tablehead>
|
||||
<th width=280>Device</th>
|
||||
<th>Memory</th>
|
||||
<th width=100></th>
|
||||
<th width=280>Usage</th>
|
||||
<th width=50>Used</th>
|
||||
</tr>");
|
||||
|
||||
$i = '1';
|
||||
$mempools = mysql_query("SELECT * FROM `mempools` AS M, `devices` as D WHERE D.device_id = M.device_id ORDER BY D.hostname");
|
||||
while ($mempool = mysql_fetch_assoc($mempools))
|
||||
|
||||
@@ -4,6 +4,14 @@ $graph_type = "processor_usage";
|
||||
|
||||
echo("<div style='margin-top: 5px; padding: 0px;'>");
|
||||
echo(" <table width=100% cellpadding=6 cellspacing=0>");
|
||||
|
||||
echo("<tr class=tablehead>
|
||||
<th width=280>Device</th>
|
||||
<th>Processor</th>
|
||||
<th width=100></th>
|
||||
<th width=280>Usage</th>
|
||||
</tr>");
|
||||
|
||||
$i = '1';
|
||||
$procs = mysql_query("SELECT * FROM `processors` AS P, `devices` AS D WHERE D.device_id = P.device_id ORDER BY D.hostname");
|
||||
while ($proc = mysql_fetch_assoc($procs))
|
||||
|
||||
Reference in New Issue
Block a user