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:
Tom Laermans
2011-04-13 14:19:49 +00:00
parent d03ee4217e
commit b593df2549
4 changed files with 24 additions and 7 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ print_optionbar_end();
switch ($_GET['opta'])
{
case 'processor':
case 'memory':
case 'mempool':
case 'storage':
case 'temperature':
case 'humidity':
+9
View File
@@ -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))
+8
View File
@@ -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))