2009-10-28 13:52:39 +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(
|
|
|
|
'dot3StatsAlignmentErrors',
|
|
|
|
'dot3StatsFCSErrors',
|
|
|
|
'dot3StatsSingleCollisionFrames',
|
|
|
|
'dot3StatsMultipleCollisionFrames',
|
|
|
|
'dot3StatsSQETestErrors',
|
|
|
|
'dot3StatsDeferredTransmissions',
|
|
|
|
'dot3StatsLateCollisions',
|
|
|
|
'dot3StatsExcessiveCollisions',
|
|
|
|
'dot3StatsInternalMacTransmitErrors',
|
|
|
|
'dot3StatsCarrierSenseErrors',
|
|
|
|
'dot3StatsFrameTooLongs',
|
|
|
|
'dot3StatsInternalMacReceiveErrors',
|
|
|
|
'dot3StatsSymbolErrors',
|
|
|
|
);
|
2009-10-28 13:52:39 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$i = 0;
|
|
|
|
$rrd_filename = $config['rrd_dir'].'/'.$device['hostname'].'/'.safename('port-'.$port['ifIndex'].'-dot3.rrd');
|
2009-10-28 13:52:39 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
if (is_file($rrd_filename)) {
|
|
|
|
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-09 17:02:51 +00:00
|
|
|
}
|
2010-02-24 21:44:32 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
$colours = 'mixed';
|
|
|
|
$nototal = 1;
|
|
|
|
$unit_text = 'Errors/sec';
|
2011-10-12 14:04:27 +00:00
|
|
|
$simple_rrd = 1;
|
2009-10-28 13:52:39 +00:00
|
|
|
|
2015-07-10 13:36:21 +02:00
|
|
|
require 'includes/graphs/generic_multi_simplex_seperated.inc.php';
|