snmp agent in Ubuntu
Step: 1
Install the snmp package.
# apt-get install snmpd
Step: 2
Before continue the configuration, take backup of the original snmp configuration file.
# mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bkp
Step: 3
Create a new configuration file
# vim /etc/snmp/snmpd.conf
rocommunity abcdefgh
syslocation "Tech Support"
syscontact support@drbdtest.com
Step: 4
Check and confirm that below mentioned configuration into your machine also..
# vim /etc/default/snmpd
export MIBS=
SNMPDRUN=yes
SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid -c /etc/snmp/snmpd.conf'
Step: 5
Restart the snmp service.
# /etc/init.d/snmpd restart
#snmp
Comments
Post a Comment