To install snmpd on Ubuntu jesu type
$ sudo apt-get install snmpd
Remove config
$mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
Now lets create new snmpd config file
$ sudo vi /etc/snmp/snpmd.conf
And add two lines to file
rocommunity public
syscontact serveradmin@example.com
Then we should edit /etc/default/snmpd file
$ sudo vim /etc/default/snmpd
Add to line some new option
before
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid'
after
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -g snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
Now restart snmpd
$ service snmpd restart
Well done!