Opened 14 years ago

Closed 12 years ago

Last modified 10 years ago

#70 closed defect (fixed)

MRTG shows 100 Mbps peaks after "clear counters" on GE and 10GE ports

Reported by: human Owned by: somebody
Version: 2.x Keywords:
Cc: md@…


On several types of switches, "clear counters" resets all SNMP counters to zero.

However, MRTG does not handle this situation correctly when 64-bit counters are used.

The problem is in rateup.c:

              if (outr < 0)     /* wrapped 32-bit counter? */
                outr += (long long) 1 << 32;

This code assumes couters are always 32-bit. But for GE and 10GE interfaces, where 64-bit counters are inevitable, the above code performs wrong computation and creates 100 Mbps peaks in graphs

Note: See TracTickets for help on using tickets.

NOTE: The content of this website is accessible with any browser. The graphical design though relies completely on CSS2 styles. If you see this text, this means that your browser does not support CSS2. Consider upgrading to a standard conformant browser like Mozilla Firefox or Opera but also Apple's Safari or KDE's Konqueror for example.