1、确保本机已经安装了snmp服务 [root@idc ~]# rpm -qa |grep snmp net-snmp-libs-5.1.2-11.EL4.7 net-snmp-5.1.2-11.EL4.7 如果没有,那么放入linux安装盘找到snmp的rpm包进行安装,或者到网上搜索适合自己linux发行版本的rpm包进行安装 2、snmpd.conf文件配置 按照如下方式修改snmpd.conf文件 A、修改默认的community string com2sec notConfigUser default public 将public修改为你才知道的字符串 B、把下面的#号去掉 #view mib2 included .iso.org.dod.internet.mgmt.mib-2 fc C、把下面的语句 access notConfigGroup "" any noauth exact systemview none none 改成: access notConfigGroup "" any noauth exact mib2 none none 3、重启snmpd服务 #/etc/rc.d/init.d/snmpd restart 完成snmpd的配置 4、确保linux的iptables防火墙对我们的流量监控服务器开放了udp 161端口的访问权限 可使用iptables –L –n 查看当前iptables规则 可编辑/etc/sysconfig/iptables文件来修改iptables规则。

