1.安装snmp软件
yum install -y net-snmp-devel net-snmp-utils net-snmp
2.编译配置文件
vi /etc/snmp/snmpd.conf
(1)修改默认的community string
com2sec notConfigUser default public将public修改为你才知道的字符串(也可不改)
(2)把下面的#号去掉(在89行)
#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
重启snmpd服务
service snmpd restart
snmpwalk -v 2c -c public 10.0.0.7
会查看到监听163端口
web界面配置
新增加一个主机就行