fix: Fixed etherlike graphs (#8358)

Empty rrd defintion...
This commit is contained in:
Tony Murray
2018-03-12 14:27:51 -05:00
committed by Neil Lathwood
parent bbd16dd2d2
commit e3d44c54d2

View File

@@ -3,6 +3,22 @@
use LibreNMS\RRD\RrdDefinition;
if ($this_port['dot3StatsIndex'] and $port['ifType'] == 'ethernetCsmacd') {
$etherlike_oids = array(
'dot3StatsAlignmentErrors',
'dot3StatsFCSErrors',
'dot3StatsSingleCollisionFrames',
'dot3StatsMultipleCollisionFrames',
'dot3StatsSQETestErrors',
'dot3StatsDeferredTransmissions',
'dot3StatsLateCollisions',
'dot3StatsExcessiveCollisions',
'dot3StatsInternalMacTransmitErrors',
'dot3StatsCarrierSenseErrors',
'dot3StatsFrameTooLongs',
'dot3StatsInternalMacReceiveErrors',
'dot3StatsSymbolErrors',
);
$rrd_oldname= 'etherlike-'.$port['ifIndex']; // TODO: remove oldname check?
$rrd_name = getPortRrdName($port_id, 'dot3');