Chinaunix首页 | 论坛 | 博客
  • 博客访问: 117103
  • 博文数量: 28
  • 博客积分: 1648
  • 博客等级: 上尉
  • 技术积分: 325
  • 用 户 组: 普通用户
  • 注册时间: 2006-03-06 12:50
文章分类
文章存档

2014年(1)

2013年(1)

2012年(7)

2011年(14)

2010年(4)

2007年(1)

我的朋友

分类: LINUX

2012-06-18 10:27:03

1、确保Linux主机已经安装了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的配置
3、确保Linux的iptables防火墙对我们的流量监控服务器开放了udp 161端口的访问权限
可使用iptables –L –n 查看当前iptables规则
可编辑/etc/sysconfig/iptables文件来修改iptables规则

本篇文章来源于 Linux公社网站()  原文链接:http:///Linux/2008-03/11972.htm

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