Issue with SNMP walk failing in version 5.7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Issue with SNMP walk failing in version 5.7

Post by dshearon »

We were testing the SNMP walk tool out a bit yesterday to see if there was any improvement with version 5.7. We were able to perform a walk with no problem on one device but every other device we tried failed immediately saying it was timing out or unable to connect. We got this message right away regardless of how long we set the timeout to. After some troubleshooting we found that even though the failure comes across in the UI immediately the request and response packets are being sent/received. We were able to confirm this using tcpdump and isolating it to the host we were running the walk on. We tried a few reboots and some other standard stuff with no improvement. Please let me know what other information or troubleshooting may be helpful to track down the cause.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with SNMP walk failing in version 5.7

Post by lmiltchev »

Please verify that snmp is running on the remote machines, and you are using the correct community string. Also, make sure that there is no firewall on the Nagios XI server, remote devices or in-between that is blocking UDP port 161.

Next, run the following command from the command line and show the output:

Code: Select all

snmpwalk -v 2c -c <community> <ip address>
Be sure to check out our Knowledgebase for helpful articles and solutions!
dshearon
Posts: 64
Joined: Tue Nov 17, 2015 9:38 am

Re: Issue with SNMP walk failing in version 5.7

Post by dshearon »

We've confirmed that SNMP is running and that nothing is blocking the connections. Once we get the failure in the UI we can still see the sNMP request and response packets going across so it has a path there and a return. I ran the command you supplied and pasted the last few lines of the output here to show it is receiving data back. It does end with "Timeout: no response" even increasing the timeout.

IPV6-MIB::ipv6IfAdminStatus.1 = INTEGER: up(1)
IPV6-MIB::ipv6IfAdminStatus.2 = INTEGER: up(1)
IPV6-MIB::ipv6IfOperStatus.1 = INTEGER: up(1)
IPV6-MIB::ipv6IfOperStatus.2 = INTEGER: up(1)
SNMPv2-SMI::mib-2.131.1.1.1.2.1 = INTEGER: 4
SNMPv2-SMI::mib-2.131.1.1.1.2.2 = INTEGER: 4
SNMPv2-SMI::mib-2.131.1.1.1.2.3 = INTEGER: 4
SNMPv2-SMI::mib-2.131.1.1.1.2.4 = INTEGER: 4
SNMPv2-SMI::mib-2.131.1.1.1.2.5 = INTEGER: 4
SNMPv2-SMI::mib-2.131.1.1.1.3.1 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.3.2 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.3.3 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.3.4 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.3.5 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.4.1 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.4.2 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.4.3 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.4.4 = INTEGER: 3
SNMPv2-SMI::mib-2.131.1.1.1.4.5 = INTEGER: 3
Timeout: No Response from 10.64.25.0
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issue with SNMP walk failing in version 5.7

Post by ssax »

Please attach your /etc/php.ini as the max_execution_time, memory_limit, and max_input_vars will have an impact on this.

Run this command as root (and leave it running):

Code: Select all

tail -Fn0 /var/log/httpd/error_log /var/log/httpd/ssl_error_log /usr/local/nagiosxi/var/cmdsubsys.log /usr/local/nagiosxi/var/eventman.log
Then run through the SNMP Walk wizard again and replicate the failure, once it's failed please send the full output from the still running tail command above.
Locked