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
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
foreach ($procs as $proc) {
|
2016-07-07 01:33:43 -05:00
|
|
|
$rrd_filename = rrd_name($device['hostname'], array('processor', $proc['processor_type'], $proc['processor_index']));
|
2015-07-10 13:36:21 +02:00
|
|
|
|
2016-07-08 15:09:11 -05:00
|
|
|
if (rrdtool_check_rrd_exists($rrd_filename)) {
|
2015-07-10 13:36:21 +02:00
|
|
|
$descr = short_hrDeviceDescr($proc['processor_descr']);
|
|
|
|
|
|
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
|
|
|
$rrd_list[$i]['descr'] = $descr;
|
|
|
|
$rrd_list[$i]['ds'] = 'usage';
|
|
|
|
$rrd_list[$i]['area'] = 1;
|
|
|
|
$i++;
|
|
|
|
}
|
2010-02-13 21:45:39 +00:00
|
|
|
}
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$unit_text = 'Load %';
|
2010-02-13 21:45:39 +00:00
|
|
|
|
2015-12-06 21:23:06 +10:00
|
|
|
$units = '';
|
2011-03-17 13:35:25 +00:00
|
|
|
$total_units = '%';
|
2015-07-10 13:36:21 +02:00
|
|
|
$colours = 'mixed';
|
2010-02-13 21:45:39 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$scale_min = '0';
|
|
|
|
$scale_max = '100';
|
2010-02-13 21:45:39 +00:00
|
|
|
|
|
|
|
$nototal = 1;
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
require 'includes/graphs/generic_multi_line.inc.php';
|