net-snmp-5.7.1 编译安装 (ubuntu)
2012-09-15 21:26
609 查看
下载net-snmp
#wget http://superb-dca2.dl.sourceforge.net/project/net-snmp/net-snmp/5.7.1/net-snmp-5.7.1.tar.gz 安装Ubuntu下的snmp的依赖包
#sudo apt-get install libperl-dev
进入到解压目录,开始配置snmp
#tar -xvf net-snmp-5.7.1.tar.gz
#./configure --with-default-snmp-version="2" --with-sys-contact="@jiesai" --with-sys-location="Unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp"
#make
#make install
7、验证安装是否成功,如下所示:
# snmpget --version
如果提示如下错误:
snmpget: error while loading shared libraries: libnetsnmp.so.30: cannot open shared object file: No such file or directory
解决方案如下: cp /usr/local/lib/libnetsnmp.so.30 /usr/lib
#修改snmpd.conf文件 0.0.0.0 是别的机器通过snmp能够信息
agentAddress udp:0.0.0.0:161
view systemonly included .1
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
access notConfigGroup "" any noauth exact systemview none none
syslocation www.openlab.com //系统的location
syscontact xxxx(xxxx@qq.com) //系统联系人
dontLogTCPWrappersConnects yes
#wget http://superb-dca2.dl.sourceforge.net/project/net-snmp/net-snmp/5.7.1/net-snmp-5.7.1.tar.gz 安装Ubuntu下的snmp的依赖包
#sudo apt-get install libperl-dev
进入到解压目录,开始配置snmp
#tar -xvf net-snmp-5.7.1.tar.gz
#./configure --with-default-snmp-version="2" --with-sys-contact="@jiesai" --with-sys-location="Unknown" --with-logfile="/var/log/snmpd.log" --with-persistent-directory="/var/net-snmp"
#make
#make install
7、验证安装是否成功,如下所示:
# snmpget --version
如果提示如下错误:
snmpget: error while loading shared libraries: libnetsnmp.so.30: cannot open shared object file: No such file or directory
解决方案如下: cp /usr/local/lib/libnetsnmp.so.30 /usr/lib
#修改snmpd.conf文件 0.0.0.0 是别的机器通过snmp能够信息
agentAddress udp:0.0.0.0:161
view systemonly included .1
com2sec notConfigUser default public
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser
access notConfigGroup "" any noauth exact systemview none none
syslocation www.openlab.com //系统的location
syscontact xxxx(xxxx@qq.com) //系统联系人
dontLogTCPWrappersConnects yes
相关文章推荐
- Ubuntu下安装net-snmp5.7.1的方法
- ubuntu下安装net-snmp5.7.1的步骤
- 【Ubuntu 16】安装net-snmp
- ubuntu安装net-snmp-5.5.1方法总结
- net-snmp-5.7.3配置编译安装
- net-snmp-5.4.4 编译,安装,运行。
- net-snmp(5.6.1) 编译 安装 运行调试全记录
- Ubuntu net-snmp安装
- Ubuntu 快速安装net-snmp
- [转]VS2005下编译、安装Net-snmp 5.4.1.2
- Ubuntu下安装net-snmp步骤
- net-snmp编译安装报错问题处理
- net-snmp-5.7.3配置编译安装
- net-snmp 编译安装
- Net-snmp总结(二)-net-snmp配置编译安装
- 在Ubuntu上安装Net-SNMP
- 源码编译安装net-snmp
- ubuntu-10.10中安装net-snmp-5.5
- Ubuntu安装net-snmp
- Ubuntu下安装net-snmp