略,请参阅LINUX系统SNMP安装说明,通常状况下Linux中 的均已经自动安装了SNMP服务。如下命令能够检测SNMP服务是否安装以及安装的文件包。服务器
[root@idc ~]# rpm -qa |grep snmp
net-snmp-libs-5.1.2-11.EL4.7
net-snmp-5.1.2-11.EL4.7ide
按照以下方式修改/etc/snmp/snmpd.conf文件rest
A、修改默认的community string(SUM中SNMP读值密码)
com2sec notConfigUser default public
将public修改成你才知道的字符串ip
将“default”改成你想哪台机器能够看到你 的snmp信息,好比SUM所在IP为:10.10.10.10, 就改为这个IP。不改表示全部机器充许。字符串
B、把下面的#号去掉
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fcstring
启用所有功能能够使用以下一行(若是没有能够加入一行):it
view all included .1
C、把下面的语句
access notConfigGroup "" any noauth exact systemview none none
改为:
access notConfigGroup "" any noauth exact mib2 none noneclass
或是:监控
access notConfigGroup "" any noauth exact all none none
通常使用:service snmpd start|stop|restart命令。或是:
#/etc/rc.d/init.d/snmpd restart
若是Linux启动了防火墙,请开放UDP的161端 口。确保Linux的iptables防火墙对SUM监控服务器开放 了udp 161端口的访问权限
可以使用iptables ?L ?n 查看当前iptables规则
可编辑/etc/sysconfig/iptables文 件来修改iptables规则。