I'm trying to monitor a server (Ubuntu 12.04) via SNMP remotely. I have edited the snmpd.conf file and added a IP block to the readonly section. When I try to test SNMP locally, I can see that it works. Here is the command I used to test my SNMP daemon locally.

snmpwalk -v1 -c <comname> localhost system

The problem is, from remote hosts I can not see any messages. Below is the command I used.

snmpwalk -v1 -c <comname> <IPtoBeMonitored>

The error message I get is;

Timeout: No Response from <IPtoBeMonitored>

I don't have a firewall. What do you think might be the cause of this issue? Thanks in advance.


Run 'netstat -an | grep :161' - if you don't see the address of your Ethernet adapter (i.e. only then you need to configure agentaddress in your snmpd.conf.

  • I found out that Ubuntu keeps a file at /etc/default/snmpd which has a line as below. SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid' Deleting the from the line above and restarting SNMP daemon did the trick. Thank you rnxrx and @Joel K. You were both right. – patrician Jun 5 '12 at 5:32
  • @patrician this information does not appear to be accurate for 12.04. I experience the same issue but my default/snmpd does not have listed there... – Mxx Oct 20 '12 at 23:03

Check your snmpd.conf -- are you perhaps only binding on loopback?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.