Chinaunix首页 | 论坛 | 博客
  • 博客访问: 193798
  • 博文数量: 72
  • 博客积分: 1415
  • 博客等级: 上尉
  • 技术积分: 738
  • 用 户 组: 普通用户
  • 注册时间: 2010-09-12 14:51
文章分类

全部博文(72)

文章存档

2011年(34)

2010年(38)

我的朋友

分类: LINUX

2010-12-23 11:22:30

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

#view all    included  .1                         80


C、把下面的语句

access notConfigGroup "" any noauth exact systemview none none

改成:

access notConfigGroup "" any noauth exact all 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规则。

 

阅读(549) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~