Hi,
To make traffic graphs the snmp programs gets the value of Octets wich has been counted in an interface after and before a poll time. The traffic in bits per second is
(traffic after the interval) - (traffic before the interval)
------------------------------------------------------- * 8
(time after the interval) - (time before the interval)
Usually the snmp programs work with the following MIB to make traffic graphs:
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifInOctets
.1.3.6.1.2.1.2.2.1.10.ifindex
.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry.ifOutOctets
.1.3.6.1.2.1.2.2.1.16.ifindex
The result is a 32 bit integer. You will get an overflow if the traffic is bigger than 2^32 / interval.
To avoid this problem there is a 64 bits MIB
.iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCInOctets
.1.3.6.1.2.1.31.1.1.1.6.ifindex
.iso.org.dod.internet.mgmt.mib-2.ifMIB.ifMIBObjects.ifXTable.ifXEntry.ifHCOutOctets
.1.3.6.1.2.1.31.1.1.1.10.ifindex
This MIB is not supported by all devices, so it is advisable to add it only as an option.
It also would be nice to graph packets per second instead of bits per second.
Thank you for this tool & regards