The Screaming Admin
Remembering today how I hosed my server yesterday
SNMP on Ubuntu Server 10.04 LTS
Posted by on November 4, 2010
If you have configured SNMP to work properly, created your snmpd.conf file, and even have the service running on the server without a hitch, you may not be listening to all interfaces. Open the file /etc/default/snmpd, and look for a line that looks like this:
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1'
All of these options are explained in the snmpd(8) manpage. The one that interests you should be the localhost address, 127.0.0.1. In order to listen for connections to snmpd from the outside world, remove the address, so the line looks like this:
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid '
While you’re at it, specify where your snmpd.conf file can be found:
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
Advertisement
Thank you very much for this!
Helped me no end!
Br
PG
THNKS A LOT!