编程开源技术交流,分享技术与知识

网站首页 > 开源技术 正文

Centos 6、7 配置SNMP(centos snmp 安装配置)

wxchong 2024-07-17 04:43:06 开源技术 9 ℃ 0 评论

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

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表