Community discussions

MikroTik App
 
cobausque
just joined
Topic Author
Posts: 5
Joined: Mon Feb 22, 2016 8:55 pm

SNMP too slow response time

Fri Mar 23, 2018 12:00 pm

Hi..

I'm having probelmas with the SNMP response time of several mikrotik routers.
all are with version 6.41.2.
I took a test ...
Connected by ssh, I ran the command (tool snmp-walk address = xxx.xxx.xxx.xxx version = 2c community = public).
I get very slow responses, and the next minute, quick answers.
I've tested several different snmp settings.
CPU with normal behavior.
Snmp responds but with a very high MS, and not following following responds normal.

Has anyone seen this behavior?
 
pe1chl
Forum Guru
Forum Guru
Posts: 8866
Joined: Mon Jun 08, 2015 12:09 pm

Re: SNMP too slow response time

Fri Mar 23, 2018 12:06 pm

Don't use snmpwalk for anything other than experiments. Especially not the whole tree.
This is slow on any Linux system. It is because the collection of so many values takes time,
for some of them external programs are started etc.
So use snmpget to only get what you want. Or at lest limit your snmpwalk to some variable
deep in the OID tree and use snmpbulkwalk instead of snmpwalk as well.
 
cobausque
just joined
Topic Author
Posts: 5
Joined: Mon Feb 22, 2016 8:55 pm

Re: SNMP too slow response time

Fri Mar 23, 2018 12:11 pm

I used it to compare the response time at the beginning of the command. even requesting a value the response time increases and decreases drastically, in monitoring I have to increase the response time to at least 1000ms.
The command I presented here uses only to see the response time of the equipment at the beginning of the process. I'm not waiting for all the loading. even though requesting an OID specifies I get the same response time
 
pe1chl
Forum Guru
Forum Guru
Posts: 8866
Joined: Mon Jun 08, 2015 12:09 pm

Re: SNMP too slow response time

Fri Mar 23, 2018 12:20 pm

What variable do you use to test this? When I do snmpbulkwalk -v2c -c public (ip)
I get quite quick responses but sometimes with pauses in the output. That is normal.
 
cobausque
just joined
Topic Author
Posts: 5
Joined: Mon Feb 22, 2016 8:55 pm

Re: SNMP too slow response time

Fri Mar 23, 2018 12:48 pm

What variable do you use to test this? When I do snmpbulkwalk -v2c -c public (ip)
I get quite quick responses but sometimes with pauses in the output. That is normal.
.1.3.6.1.2.1.25.3.3.1.2.1
and
.1.0.8802.1.1.2.1.3.4.0
( its a example...)


I have graphics monitoring interfaces and cpu etc ...
There is a response from the router .. But the time varies a lot.
In this second renho responses in 2ms in the next second with 1000ms.
This behavior is leaving my graphics with flaws.

The graphics are requested every 5 minutes.
On this router I have PPPoe only.
with 900 customers online.
Without explanation, SNMP started to do this.
 
maxsaf
Frequent Visitor
Frequent Visitor
Posts: 71
Joined: Tue Mar 06, 2018 8:47 pm

Re: SNMP too slow response time

Fri Mar 23, 2018 4:47 pm

I would recommend you poll that info using RouterOS API instead of SNMP. I had same issue, my graphs had drops, now looks perfect. You need to add device settings - user name, password, Router OS enable and for dude V6.x on router enable dude option for user groups.

Who is online

Users browsing this forum: No registered users and 5 guests