fix more health graphs (removing plurals)

git-svn-id: http://www.observium.org/svn/observer/trunk@2043 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-04-09 14:22:43 +00:00
parent 56b4b27217
commit 78e507ccc4
10 changed files with 19 additions and 14 deletions

View File

@@ -0,0 +1,36 @@
<?php
$device = device_by_id_cache($id);
$query = mysql_query("SELECT * FROM `processors` where `device_id` = '".$id."'");
$i = 0;
while ($proc = mysql_fetch_assoc($query))
{
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/" . safename("processor-" . $proc['processor_type'] . "-" . $proc['processor_index'] . ".rrd");
if (is_file($rrd_filename))
{
$descr = short_hrDeviceDescr($proc['processor_descr']);
$rrd_list[$i]['filename'] = $rrd_filename;
$rrd_list[$i]['descr'] = $descr;
$rrd_list[$i]['rra'] = "usage";
$i++;
}
}
$unit_text = "Load %";
$units = '%';
$total_units = '%';
$colours ='mixed';
$scale_min = "0";
$scale_max = "100";
$nototal = 1;
include("includes/graphs/generic_multi_line.inc.php");
?>