How to make SNMP Agent accept connections from other hosts in the network?
Edit the file /etc/snmp/snmpd.conf
. Change the line:
agentAddress udp:127.0.0.1:161
to:
agentAddress udp:161
Then restart snmpd:
sudo service snmpd restart
It should listen to all interfaces now:
$ sudo netstat -ulnp | grep 161
udp 0 0 0.0.0.0:161 0.0.0.0:* 8517/snmpd
My solution
agentAddress udp:161
...
# rocommunity public default -V systemonly
rocommunity public 172.25.7.169/32
...and restart snmp
It makes snmp to hear in all interfaces but only answer to 172.25.7.169 (my monitor server)