Files

40 lines
1.1 KiB
PHP
Raw Permalink Normal View History

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
2020-09-21 15:40:17 +02:00
$oids = [
'dot3StatsAlignmentErrors',
'dot3StatsFCSErrors',
'dot3StatsSingleCollisionFrames',
'dot3StatsMultipleCollisionFrames',
'dot3StatsSQETestErrors',
'dot3StatsDeferredTransmissions',
'dot3StatsLateCollisions',
'dot3StatsExcessiveCollisions',
'dot3StatsInternalMacTransmitErrors',
'dot3StatsCarrierSenseErrors',
'dot3StatsFrameTooLongs',
'dot3StatsInternalMacReceiveErrors',
'dot3StatsSymbolErrors',
];
2009-10-28 13:52:39 +00:00
2020-09-21 15:40:17 +02:00
$i = 0;
2016-08-18 20:28:22 -05:00
$rrd_filename = get_port_rrdfile_path($device['hostname'], $port['port_id'], 'dot3');
2009-10-28 13:52:39 +00:00
if (rrdtool_check_rrd_exists($rrd_filename)) {
foreach ($oids as $oid) {
2020-09-21 15:40:17 +02:00
$oid = str_replace('dot3Stats', '', $oid);
$oid_ds = substr($oid, 0, 19);
$rrd_list[$i]['filename'] = $rrd_filename;
2020-09-21 15:40:17 +02:00
$rrd_list[$i]['descr'] = $oid;
$rrd_list[$i]['ds'] = $oid_ds;
$i++;
}
2011-04-09 17:02:51 +00:00
}
2020-09-21 15:40:17 +02:00
$colours = 'mixed';
$nototal = 1;
$unit_text = 'Errors/sec';
$simple_rrd = 1;
2009-10-28 13:52:39 +00:00
2019-04-11 23:26:42 -05:00
require 'includes/html/graphs/generic_multi_simplex_seperated.inc.php';