bsm snmp 安装

以radhat 5.5为例 配装安装net-snmp使BSM能正常识别:

安装时看BSM 中的要求 安装目录必须为指定的目录 /usr/local/netsnmp  还有要确保 sysstat 版本要于BSM指版本

下载包

 lm_sensors-2.10.7-9.el5.x86_64.rpm 

net-snmp-5.7.1.tar.gz 


安装

#rpm -ivh lm_sensors-2.10.7-9.el5.x86_64.rpm 

#tar zxvf net-snmp-5.7.1.tar.gz 

#cd net-snmp-5.7.1

#./configure --prefix=/usr/local/netsnmp  --with-mibs=HOST-RESOURCES-MIB  --with-mib-modules=host

#make

#make install

 

生成配置文件

#cd /usr/local/netsnmp/bin/

#./snmpconf -g basic_setup

 

复制到指定路径
#cp snmpd.conf /usr/local/netsnmp/share/snmp/snmpd.conf

 

启动服务

#/usr/local/netsnmp/sbin/snmpd

 

查看服务,进程

#netstat -an |grep 161

#ps aux |grep snmp

 

 

 

管理服务进程

kill -9 `ps aux |grep snmpd |awk '{print $2}'|sed -n '1p'`

 

查看日志

cat /var/log/snmpd.log

 

官方文档

http://www.doc88.com/p-497273244671.html

相关文章

http://linux.chinaunix.net/techdoc/system/2009/07/18/1124968.shtml


###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#



###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# syslocation: The [typically physical] location of the system.
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysLocation.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  location_string

syslocation  hostname

# syscontact: The contact information for the administrator
#   Note that setting this value here means that when trying to
#   perform an snmp SET operation to the sysContact.0 variable will make
#   the agent return the "notWritable" error code.  IE, including
#   this token in the snmpd.conf file will disable write access to
#   the variable.
#   arguments:  contact_string

syscontac   name@xxxx.com.cn 

###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

#rocommunity  public all 
rocommunity  public 

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  private  



  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值