Personal tools
You are here: Home Web management pfSense reporting wrong pppoe interface speed and cacti clipping the graph

pfSense reporting wrong pppoe interface speed and cacti clipping the graph

Attempts to capture PPPoE interface traffic from pfSense (v2.2.x) generate a clipped rrd with Cacti.  

 

On the Cacti machines change the 'max' setting in the rrd file.

rrd info before tuning:

# rrdtool  tune marathon_-_pfsense_router_traffic_in_194.rrd
DS[traffic_in] typ: COUNTER     hbt: 600        min: 0.0000     max: 64000.0000
DS[traffic_out] typ: COUNTER    hbt: 600        min: 0.0000     max: 64000.0000

To fix the rrd, use the -a command line option to set the 'max' setting for 'traffic_in' and 'traffic_out':

# rrdtool  tune marathon_-_pfsense_router_traffic_in_194.rrd  -a traffic_in:200000000
# rrdtool  tune marathon_-_pfsense_router_traffic_in_194.rrd  -a traffic_out:200000000

Verify the setting has been set:

# rrdtool  tune marathon_-_pfsense_router_traffic_in_194.rrd
DS[traffic_in] typ: COUNTER     hbt: 600        min: 0.0000     max: 200000000.0000
DS[traffic_out] typ: COUNTER    hbt: 600        min: 0.0000     max: 200000000.0000

Links

Appendices

Cacti data source

Data Source Debug

/usr/bin/rrdtool create \
/var/www/cacti/rra/marathon_-_pfsense_router_traffic_in_194.rrd \
--step 300  \
DS:traffic_in:COUNTER:600:0:64000 \
DS:traffic_out:COUNTER:600:0:64000 \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

SNMP walk

The snmp information provided by pfSense shows an interface speed of 64000.

#  snmpwalk -v 2c -c public 10.20.0.1 1.3.6.1.2.1.2.2.1 | egrep -i '\.9'
IF-MIB::ifIndex.9 = INTEGER: 9
IF-MIB::ifDescr.9 = STRING: pppoe0
IF-MIB::ifType.9 = INTEGER: propVirtual(53)
IF-MIB::ifMtu.9 = INTEGER: 1492
IF-MIB::ifSpeed.9 = Gauge32: 64000
IF-MIB::ifPhysAddress.9 = STRING:
IF-MIB::ifAdminStatus.9 = INTEGER: up(1)
IF-MIB::ifOperStatus.9 = INTEGER: dormant(5)
IF-MIB::ifLastChange.9 = Timeticks: (0) 0:00:00.00
IF-MIB::ifInOctets.9 = Counter32: 837467657
IF-MIB::ifInUcastPkts.9 = Counter32: 640349
IF-MIB::ifInNUcastPkts.9 = Counter32: 0
IF-MIB::ifInDiscards.9 = Counter32: 0
IF-MIB::ifInErrors.9 = Counter32: 0
IF-MIB::ifInUnknownProtos.9 = Counter32: 0
IF-MIB::ifOutOctets.9 = Counter32: 72005611
IF-MIB::ifOutUcastPkts.9 = Counter32: 349993
IF-MIB::ifOutNUcastPkts.9 = Counter32: 2
IF-MIB::ifOutDiscards.9 = Counter32: 1461
IF-MIB::ifOutErrors.9 = Counter32: 0
IF-MIB::ifOutQLen.9 = Gauge32: 0
IF-MIB::ifSpecific.9 = OID: SNMPv2-SMI::zeroDotZero
Document Actions