linux snmp配置

  1. 确认snmp代理是否已安装
# rpm -q net-snmp
  1. 如果未安装,安装snmp
# yum install net-snmp net-snmp-devel net-snmp-utils
  1. 修改配置 /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
  1. 启动并设置为自启动
systemctl start snmpd
systemctl enable snmpd

你可能感兴趣的:(linux snmp配置)