Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The polling rate increases after a configuration update. #97

Open
ankcn opened this issue Sep 12, 2022 · 2 comments
Open

The polling rate increases after a configuration update. #97

ankcn opened this issue Sep 12, 2022 · 2 comments

Comments

@ankcn
Copy link
Contributor

ankcn commented Sep 12, 2022

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
Copy link
Owner

oetiker commented Sep 12, 2022

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

@ankcn
Copy link
Contributor Author

ankcn commented Sep 15, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants