下载依赖包
yum install -y net-snmp net-snmp-devel net-snmp-utils
进入配置文件
vim /etc/snmp/snmpd.conf
修改密码
这里的public就是密码
分别将以下两行添加进文档
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
access notConfigGroup "" any noauth exact mib2 none none
保存退出
开机自启动
chkconfig --level 2345 snmpd on
开启snmp
service snmpd restart