以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