rpm -qa|grep snmp
yum install -y net-snmp net-snmp-utils net-snmp-libs
1、备份默认配置文件
cd /etc/snmp
cp snmpd.conf snmpd.conf.back
service snmpd start
1、修改团体名(默认为public,修改自己的)
com2sec notConfigUser default public
2、去掉以下的注释
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
3、进行以下替换
access notConfigGroup "" any noauth exact systemview none none
改成
access notConfigGroup "" any noauth exact mib2 none none
service snmpd restart
chkconfig snmpd on
chkconfig -list|grep snmpd