- 确认snmp代理是否已安装
# rpm -q net-snmp
- 如果未安装,安装snmp
# yum install net-snmp net-snmp-devel net-snmp-utils
- 修改配置 /etc/snmp/snmpd.conf
com2sec notConfigUser default public
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
#access notConfigGroup "" any noauth exact systemview none none
access notConfigGroup "" any noauth exact mib2 none none
- 启动并设置为自启动
systemctl start snmpd
systemctl enable snmpd