2011-04-13 19:08:01 +00:00
|
|
|
<?php
|
|
|
|
|
2012-05-25 12:24:34 +00:00
|
|
|
// Cycle through dot3stats OIDs and build list of RRAs to pass to multi simplex grapher
|
2015-07-10 13:36:21 +02:00
|
|
|
$oids = array(
|
|
|
|
'drop',
|
|
|
|
'punt',
|
|
|
|
'hostpunt',
|
|
|
|
);
|
|
|
|
$i = 0;
|
2011-04-13 19:08:01 +00:00
|
|
|
|
2016-07-08 15:09:11 -05:00
|
|
|
if (rrdtool_check_rrd_exists($rrd_filename)) {
|
2015-07-10 13:36:21 +02:00
|
|
|
foreach ($oids as $oid) {
|
|
|
|
$oid = str_replace('dot3Stats', '', $oid);
|
|
|
|
$oid_ds = truncate($oid, 19, '');
|
|
|
|
$rrd_list[$i]['filename'] = $rrd_filename;
|
|
|
|
$rrd_list[$i]['descr'] = $oid;
|
|
|
|
$rrd_list[$i]['ds'] = $oid_ds;
|
|
|
|
$i++;
|
|
|
|
}
|
2011-04-13 19:08:01 +00:00
|
|
|
}
|
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$colours = 'mixed';
|
2011-04-13 19:08:01 +00:00
|
|
|
$nototal = 1;
|
2015-07-10 13:36:21 +02:00
|
|
|
$unit_text = 'Errors';
|
2011-04-13 19:08:01 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|