1 安装
常用工具用包安装就行了
yum install net-snmp-utils net-snmp
chkconfig snmpd on

2 配置SNMP
按照如下方式修改/etc/snmp/snmpd.conf文件

(1)修改默认的community string(SUM中SNMP读值密码)
com2sec notConfigUser default public(公共体名称)
将public修改为你才知道的字符串

将“default”改为你想哪台机器可以看到你的snmp信息,比如SUM所在IP为:118.45.25.10,就改成这个IP。不改表示所有机器充许。

(2)把下面的#号去掉
#view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc

启用全部功能可以使用如下一行(如果没有可以加入一行):去掉前面#

view all included .1           80

(3)把下面的语句
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、重启snmpd服务
/etc/rc.d/init.d/snmpd restart

4、确保Linux的iptables防火墙对我们的流量监控服务器开放了udp 161端口的访问权限
可使用iptables –L –n 查看当前iptables规则
可编辑/etc/sysconfig/iptables文件来修改iptables规则