Linux – Polling SNMP Messages Remotely

linuxsnmp

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.

Best Answer

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