Files
librenms-librenms/html/includes/graphs/device/processor_separate.inc.php
T

35 lines
661 B
PHP
Raw Normal View History

2009-10-27 13:04:16 +00:00
<?php
2011-03-16 21:59:11 +00:00
$i = 0;
2011-05-13 13:27:54 +00:00
foreach ($procs as $proc)
2011-03-16 21:59:11 +00:00
{
$rrd_filename = $config['rrd_dir'] . "/".$device['hostname']."/" . safename("processor-" . $proc['processor_type'] . "-" . $proc['processor_index'] . ".rrd");
2011-03-16 21:59:11 +00:00
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";
2011-09-19 08:54:48 +00:00
$rrd_list[$i]['area'] = 1;
$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';
$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
?>