SNMP not working properly. Timeout: No Response from localhost
Hi,
We are facing some typical issue with SNMP. we are running the below "snmpwalk" command. but sometimes it is running and sometimes it is getting Timeout error.
"snmpwalk -v 1 -c public localhost system"
We have tried the latest nety-snmp rpms.
our snmpd.conf file is very simple.
cat /etc/snmp/snmpd.conf
rocommunity public
rwcommunity public
can anyone please help in troubleshooting the issue?
Thanks & Regards,
Sanjay
Responses
Couple of things that can cause this:
* You don't have an appropriate ALLOW rule in /etc/hosts.allow
* You don't have an appropriate exception in your iptables configuration.
...and you probably want your snmpd.conf to be a skosh more complex than what you've listed:
In each case, only one directive should be specified for a given SNMPv3 user, or community string. It is not appropriate to specify
both rouser and rwuser directives referring to the same SNMPv3 user (or equivalent community settings). The rwuser directive
provides all the access of rouser (as well as allowing SET support). The same holds true for the community-based directives.
That is, you'd want your community-strings for your rocommunity and rwcommunity settings to be different.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
