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?