1. Installation
sudo apt-get install snmpd snmp
snmpd is the Anget of snmp, and snmp is the snmp tool for snmpwalk testing.
2. Configuration
sudo vim /etc/snmp/snmpd.conf
rocommunity public 192.168.1.10
192.168.1.10 is the ip that allows access. Just need this line.
sudo vim /etc/default/snmp
SNMPDOPTS='-LS 0-4 d -Lf /dev/null -p /var/run/snmpd.pid'
Just modify the line snmpdopts.
0-4 indicates the log level. By default, a large number of snmp logs will be written to /var/log/syslog.
sudo service snmpd restart
3. Test
snmpwalk -c public -v2c localhost
https://help.ubuntu.com/community/SNMPAgent
https://raetsel.wordpress.com/2008/02/15/snmpd-filling-up-varlogmessages/