librenms-librenms/html/includes/graphs/device/processor_stack.inc.php
Adam Amstrong 952ae3b365 all graphs to db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2309 61d68cd4-352d-0410-923a-c4978735b2b8
2011-05-13 13:27:54 +00:00

36 lines
676 B
PHP

<?php
$i = 0;
foreach ($procs as $proc)
{
$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 ='oranges';
$scale_min = "0";
$scale_max = "100";
$divider = $i;
$text_orig = 1;
$nototal = 1;
include("includes/graphs/generic_multi_simplex_seperated.inc.php");
?>