Install snmpd with :
sudo apt-get install snmpd
backup /etc/snmpd/snmpd.conf or cp /etc/snmpd/snmpd.conf snmpd.bak
rm -f /etc/snmpd/snmpd.conf; touch /etc/snmpd/snmpd.conf
Open /etc/snmp/snmpd.conf using your favorite editor
vim for me i'm much more of it.
sudo vim /etc/snmp/snmpd.conf
create a very minimal configuration:
rocommunity <community string you want>
syscontact <contact cacti administrator>
syslocation <location>
Save and Exit the file
Change /etc/default/snmpd so that it contains the following line to
SNMPDOPTS=’-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid’
sudo /etc/init.d/snmpd restart
.
To test: snmpwalk -v 1 -c <community string here> localhost
That should do it.
No comments:
Post a Comment
If you have any suggestion or clarification you send it via on this form.