1、下载并安装依赖包
yum install -y net-snmp net-snmp-devel net-snmp-utils #Centos6
yum -y install net-snmp net-snmp-utils #Centos7
2、修改snmpd.conf配置文件
cd /etc/snmp
cp snmpd.conf snmpd.conf.old #备份原始配置文件
3、在snmpd.conf文件增加这2行记录
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
access notConfigGroup "" any noauth exact mib2 none none
4、修改团体名称,默认是Public
5、重启下snmp服务
service snmpd restart #Centos 6
systemctl restart snmpd.service #Centos 7
6、设置开机启动,大功告成
chkconfig --level 2345 snmpd on #Centos 6
systemctl enable snmpd.service #Centos 7
本文暂时没有评论,来添加一个吧(●'◡'●)