1.安装 snmp服务
[root@localhost] yum install -y net-snmp net-snmp-utils
2.配置snmp服务
第一步:
[root@localhost] cp /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.bak
[root@localhost]vi /etc/snmp/snmpd.conf
使用默认值即可
也可以如下修改
A、修改默认的community string(SUM中SNMP读值密码)
com2sec notConfigUser default public
将public修改为你才知道的字符串
将“default”改为你想哪台机器可以看到你的snmp信息,比如SUM所在IP为:10.10.10.10,就改成这个IP。不改表示所有机器充许。
B、把下面的#号去掉
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc
启用全部功能可以使用如下一行(如果没有可以加入一行):
view all included .1 80
C、把下面的语句
access notConfigGroup "" any noauth exact systemview none none
改成:
access notConfigGroup "" any noauth exact mib2 none none
或是:
access notConfigGroup "" any noauth exact all none none
3.运行snmp服务
[root@localhost] service snmpd start
Starting snmpd: [ OK ]
4.设置成开机自动运行snmpd服务
[root@localhost] chkconfig snmpd on
[root@localhost] chkconfig –list|grep snmpd
snmpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
阅读(3395) | 评论(0) | 转发(0) |