Quantcast
Channel: Syed Jahanzaib – Personal Blog to Share Knowledge !
Viewing all articles
Browse latest Browse all 409

MRTG graph 120M Limitation

$
0
0

mrtg


If you are using MRTG and have gigabit network, you may notice that mrtg graphs will not show you traffic above then 120mb.  This is a common problem caused by 16-bit counter rollover. By default MRTG polls the device every 5min using SNMPv1, then a traffic greater than 120 Mbps will cause the 16 bit counter to wraparound in this time window.

therefore , MRTG only displays the lower traffic as it cannot tell how many times the counter has rolled over.

There are two workarounds to over come this issue.

  1. SNMP V2
  2. RRD

Quick Workaround:

I used SNMPv2. This is the best option, if your device supports it (Mikrotik do support SNMP v2). If using SNMPv2, then you can use the 64bit counters, which will not wrap around.

To do this, add

:::::2

(5 semicolons and 2) as a suffix to your Target definition to specify SNMPv2.


Working Example:

To edit existing configuration file.

Target[10.0.0.1_eth0]: #eth0:public@10.0.0.1:::::2

or with cfgmaker

cfgmaker public@10.0.0.1:::::2

I will write on RRD later which is the best option in my opinion , specially for heavy networks.

Regard’s
Syed Jahanzaib


Filed under: Linux Related

Viewing all articles
Browse latest Browse all 409

Trending Articles