Setup SNMPD (v2) in Ubuntu 12.10

* Install
{{{
sudo apt-get install snmpd
}}}
* Backup old configs
{{{
sudo mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
}}}
* Create `/etc/snmp/snmpd.conf`
{{{
rocommunity public
syslocation “Server Closet, 1B”
syscontact dave@dlasley.net
}}}
* Tell snmpd to use the new file and listen on all interfaces
** `sudo nano /etc/default/snmpd`
** Replace
{{{
SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid’
}}}
With
{{{
SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf’
}}}
* Restart snmpd
{{{
sudo service snmpd restart
}}}


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *