2009-10-27 13:04:16 +00:00
|
|
|
<?php
|
|
|
|
|
2011-03-16 21:59:11 +00:00
|
|
|
$i = 0;
|
2010-02-13 21:45:39 +00:00
|
|
|
|
2011-05-13 13:27:54 +00:00
|
|
|
foreach ($procs as $proc)
|
2011-03-16 21:59:11 +00:00
|
|
|
{
|
2010-05-02 19:47:09 +00:00
|
|
|
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/" . safename("processor-" . $proc['processor_type'] . "-" . $proc['processor_index'] . ".rrd");
|
2010-02-13 21:45:39 +00:00
|
|
|
|
2011-03-16 21:59:11 +00:00
|
|
|
if (is_file($rrd_filename))
|
|
|
|
{
|
2010-02-13 21:45:39 +00:00
|
|
|
$descr = short_hrDeviceDescr($proc['processor_descr']);
|
|
|
|
|
|
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
|
|
|
$rrd_list[$i]['descr'] = $descr;
|
|
|
|
$rrd_list[$i]['rra'] = "usage";
|
2011-09-19 08:54:48 +00:00
|
|
|
$rrd_list[$i]['area'] = 1;
|
2010-02-13 21:45:39 +00:00
|
|
|
$i++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$unit_text = "Load %";
|
|
|
|
|
2011-03-17 13:35:25 +00:00
|
|
|
$units = '%';
|
|
|
|
$total_units = '%';
|
2011-03-16 21:59:11 +00:00
|
|
|
$colours ='mixed';
|
2010-02-13 21:45:39 +00:00
|
|
|
|
|
|
|
$scale_min = "0";
|
|
|
|
$scale_max = "100";
|
|
|
|
|
|
|
|
$nototal = 1;
|
|
|
|
|
2011-03-17 13:35:25 +00:00
|
|
|
include("includes/graphs/generic_multi_line.inc.php");
|
2009-10-27 13:04:16 +00:00
|
|
|
|
2011-04-22 14:59:10 +00:00
|
|
|
?>
|