Slow polling for ports.inc.php module
![](https://secure.gravatar.com/avatar/6b63d82f0efa423d9a17050eb6865f15.jpg?s=120&d=mm&r=g)
Hi,
We have heavily loaded Brocade MLXe routers, and polling time is very high for these devices. The same is seen for few Arista switches (at longer distances) as well.
This certainly is related to IF-MIB, trying to poll lots of data statistics for all interfaces, resulting in ports.inc.php module run time of ~150sec+. Ideally, we want to reduce this polling time to <60sec.
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifEntry real 0m57.616s user 0m0.044s sys 0m0.012s
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifXEntry real 0m52.763s user 0m0.032s sys 0m0.024s
We do not care about some of the interface statistics, for example, mtu, speed, duplex, promiscuous mode, trunk, vlan, etc. We only want interface traffic in/out and error statistics. Is there a way to selectively modify any discovery/polling/MIB files, and only keep the statistics we are interested in?
Thanks, Jaynee
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
try same commands without '-Cr60' option and second one with snmpwalk (instead snmpbulkwalk).
On Sat, Jan 31, 2015 at 12:00 AM, Jaynee Shah jayneejshah@gmail.com wrote:
Hi,
We have heavily loaded Brocade MLXe routers, and polling time is very high for these devices. The same is seen for few Arista switches (at longer distances) as well.
This certainly is related to IF-MIB, trying to poll lots of data statistics for all interfaces, resulting in ports.inc.php module run time of ~150sec+. Ideally, we want to reduce this polling time to <60sec.
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifEntry real 0m57.616s user 0m0.044s sys 0m0.012s
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifXEntry real 0m52.763s user 0m0.032s sys 0m0.024s
We do not care about some of the interface statistics, for example, mtu, speed, duplex, promiscuous mode, trunk, vlan, etc. We only want interface traffic in/out and error statistics. Is there a way to selectively modify any discovery/polling/MIB files, and only keep the statistics we are interested in?
Thanks, Jaynee
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/6b63d82f0efa423d9a17050eb6865f15.jpg?s=120&d=mm&r=g)
I have tried it with all different values, no -Cr60, -Cr2, -Cr100, and even more. There is absolutely no difference.
On Fri, Jan 30, 2015 at 1:11 PM, Mike Stupalov mike@observium.org wrote:
try same commands without '-Cr60' option and second one with snmpwalk (instead snmpbulkwalk).
On Sat, Jan 31, 2015 at 12:00 AM, Jaynee Shah jayneejshah@gmail.com wrote:
Hi,
We have heavily loaded Brocade MLXe routers, and polling time is very high for these devices. The same is seen for few Arista switches (at longer distances) as well.
This certainly is related to IF-MIB, trying to poll lots of data statistics for all interfaces, resulting in ports.inc.php module run time of ~150sec+. Ideally, we want to reduce this polling time to <60sec.
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifEntry real 0m57.616s user 0m0.044s sys 0m0.012s
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifXEntry real 0m52.763s user 0m0.032s sys 0m0.024s
We do not care about some of the interface statistics, for example, mtu, speed, duplex, promiscuous mode, trunk, vlan, etc. We only want interface traffic in/out and error statistics. Is there a way to selectively modify any discovery/polling/MIB files, and only keep the statistics we are interested in?
Thanks, Jaynee
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov http://observium.org/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
I find that very hard to believe.
-Cr2 would be unbearably slow, since the default is 20.
adam.
On 2015-01-30 21:55, Jaynee Shah wrote:
I have tried it with all different values, no -Cr60, -Cr2, -Cr100, and even more. There is absolutely no difference.
On Fri, Jan 30, 2015 at 1:11 PM, Mike Stupalov mike@observium.org wrote:
try same commands without '-Cr60' option and second one with snmpwalk (instead snmpbulkwalk).
On Sat, Jan 31, 2015 at 12:00 AM, Jaynee Shah jayneejshah@gmail.com wrote:
Hi,
We have heavily loaded Brocade MLXe routers, and polling time is very high for these devices. The same is seen for few Arista switches (at longer distances) as well.
This certainly is related to IF-MIB, trying to poll lots of data statistics for all interfaces, resulting in ports.inc.php module run time of ~150sec+. Ideally, we want to reduce this polling time to <60sec.
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifEntry real 0m57.616s user 0m0.044s sys 0m0.012s
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifXEntry real 0m52.763s user 0m0.032s sys 0m0.024s
We do not care about some of the interface statistics, for example, mtu, speed, duplex, promiscuous mode, trunk, vlan, etc. We only want interface traffic in/out and error statistics. Is there a way to selectively modify any discovery/polling/MIB files, and only keep the statistics we are interested in?
Thanks, Jaynee _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [1]
--
Mike Stupalov http://observium.org/ [2] _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [1]
Links:
[1] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [2] http://observium.org/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/6b63d82f0efa423d9a17050eb6865f15.jpg?s=120&d=mm&r=g)
Yes, you are right, -Cr2 is extremely slow. What I meant here is, I am not able to get the time down to less than ~50sec, when playing with different -Cr values, betting it -Cr20 (default), -Cr60 or -Cr100.
No -Cr60 - ifEntry :- real 1m0.221s
No -Cr60 - ifXEntry :- real 0m49.692s
-Cr2 - ifEntry :- real 4m27.568s
-Cr2 - ifXEntry :- real 4m10.640s
Is it possible to tell the script not to poll the unwanted data?
Thanks.
On Fri, Jan 30, 2015 at 1:56 PM, Adam Armstrong adama@memetic.org wrote:
I find that very hard to believe.
-Cr2 would be unbearably slow, since the default is 20.
adam.
On 2015-01-30 21:55, Jaynee Shah wrote:
I have tried it with all different values, no -Cr60, -Cr2, -Cr100, and even more. There is absolutely no difference.
On Fri, Jan 30, 2015 at 1:11 PM, Mike Stupalov mike@observium.org wrote:
try same commands without '-Cr60' option
and second one with snmpwalk (instead snmpbulkwalk).
On Sat, Jan 31, 2015 at 12:00 AM, Jaynee Shah jayneejshah@gmail.com wrote:
Hi,
We have heavily loaded Brocade MLXe routers, and polling time is very high for these devices. The same is seen for few Arista switches (at longer distances) as well.
This certainly is related to IF-MIB, trying to poll lots of data statistics for all interfaces, resulting in ports.inc.php module run time of ~150sec+. Ideally, we want to reduce this polling time to <60sec.
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifEntry real 0m57.616s user 0m0.044s sys 0m0.012s
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifXEntry real 0m52.763s user 0m0.032s sys 0m0.024s
We do not care about some of the interface statistics, for example, mtu, speed, duplex, promiscuous mode, trunk, vlan, etc. We only want interface traffic in/out and error statistics. Is there a way to selectively modify any discovery/polling/MIB files, and only keep the statistics we are interested in?
Thanks, Jaynee _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [1]
--
Mike Stupalov http://observium.org/ [2] _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [1]
Links:
[1] http://postman.memetic.org/cgi-bin/mailman/listinfo/observium [2] http://observium.org/
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/0fa97865a0e1ab36152b6b2299eedb49.jpg?s=120&d=mm&r=g)
It is not possible to selectively disable parts of the ports poller.
adam.
Jaynee Shah mailto:jayneejshah@gmail.com 30 January 2015 22:46 Yes, you are right, -Cr2 is extremely slow. What I meant here is, I am not able to get the time down to less than ~50sec, when playing with different -Cr values, betting it -Cr20 (default), -Cr60 or -Cr100.
No -Cr60 - ifEntry :- real 1m0.221s
No -Cr60 - ifXEntry :- real 0m49.692s
-Cr2 - ifEntry :- real 4m27.568s
-Cr2 - ifXEntry :- real 4m10.640s
Is it possible to tell the script not to poll the unwanted data?
Thanks.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium Adam Armstrong mailto:adama@memetic.org 30 January 2015 21:56 I find that very hard to believe.
-Cr2 would be unbearably slow, since the default is 20.
adam.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium Jaynee Shah mailto:jayneejshah@gmail.com 30 January 2015 21:55 I have tried it with all different values, no -Cr60, -Cr2, -Cr100, and even more. There is absolutely no difference.
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium Mike Stupalov mailto:mike@observium.org 30 January 2015 21:11 try same commands without '-Cr60' option and second one with snmpwalk (instead snmpbulkwalk).
-- Mike Stupalov http://observium.org/ _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium Jaynee Shah mailto:jayneejshah@gmail.com 30 January 2015 21:00 Hi,
We have heavily loaded Brocade MLXe routers, and polling time is very high for these devices. The same is seen for few Arista switches (at longer distances) as well.
This certainly is related to IF-MIB, trying to poll lots of data statistics for all interfaces, resulting in ports.inc.php module run time of ~150sec+. Ideally, we want to reduce this polling time to <60sec.
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifEntry real 0m57.616s user 0m0.044s sys 0m0.012s
time /usr/bin/snmpbulkwalk -Cr60 -v2c -c 'jtv' -OQUs -m IF-MIB -M /home/jtv/observium//mibs/rfc:/home/jtv/observium//mibs/net-snmp 'udp':'br02.lhr02':'161' ifXEntry real 0m52.763s user 0m0.032s sys 0m0.024s
We do not care about some of the interface statistics, for example, mtu, speed, duplex, promiscuous mode, trunk, vlan, etc. We only want interface traffic in/out and error statistics. Is there a way to selectively modify any discovery/polling/MIB files, and only keep the statistics we are interested in?
Thanks, Jaynee _______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Adam Armstrong
-
Jaynee Shah
-
Mike Stupalov