oetiker / mrtg

MRTG - Multi Router Traffic Grapher
http://www.mrtg.org
255 stars 64 forks source link

The polling rate increases after a configuration update. #97

Open ankcn opened 2 years ago

ankcn commented 2 years ago

In my settings, the polling interval is set to three minutes. After some time of work (probably after a regular update of the MRTG configuration file), the frequency of polling targets goes astray. Instead of once every three minutes, the same target is polled twice in the same interval. Later, the polling frequency increases even more, and the frequency of updating RDD files, on the contrary, decreases.

Below is a dump of outgoing SNMP packets. It shows that requests leave 3-4 times more often than required. 09:08:51 IP mrtg-server.44287 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:09:55 IP mrtg-server.38991 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:10:37 IP mrtg-server.46329 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:11:22 IP mrtg-server.42586 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:12:16 IP mrtg-server.60945 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:13:40 IP mrtg-server.58703 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:14:02 IP mrtg-server.56478 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:14:57 IP mrtg-server.58749 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 The MRTG process here has been restarted and the polling frequency has returned to its normal value of once every three minutes. 09:15:44 IP mrtg-server.55147 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:18:46 IP mrtg-server.57360 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:21:43 IP mrtg-server.56474 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100 09:24:44 IP mrtg-server.52581 > router-1.161: C="public" GetRequest(50) ifHCInOctets.100

RRD file updating (every 9 minutes): -rw-r--r--. 1 owner owner 122368 Sep 5 08:26 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 08:35 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 08:44 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 08:54 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 09:03 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 09:12 router-1_Fa0.rrd MRTG restart. -rw-r--r--. 1 owner owner 122368 Sep 5 09:16 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 09:19 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 09:22 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 09:25 router-1_Fa0.rrd -rw-r--r--. 1 owner owner 122368 Sep 5 09:28 router-1_Fa0.rrd

Configuration file contents (without targets): EnableIPv6: no WorkDir: /path IconDir: /icon-path Options[]: growright,bits,nolegend,nobanner RunAsDaemon: Yes LogFormat: rrdtool Interval: 3 NoDetach: Yes YSize[]: 222 SnmpOptions: retries => 5, timeout => 3 Forks: 9 WithPeak[_]: y

oetiker commented 2 years ago

not a pattern I know ... what configuration did you change ?

ankcn commented 2 years ago

Target settings are updated daily. Some are added, others are removed.