cactil安装--解决缺少snmpwalk包的问题

安装过程可直接参考官方文档。cacti在使用时需要用到snmp包,在centos下安装方式:yum install net-snmp,这样没有问题的,而后安装cacti时,参考截图

 

,会用到snmpwalk,使用yum的方式一般是安装不上这个文件的,百度之后发现,一般是建议删除小yum安装的snmp包,然后下载完整的snmp源码的方式自己编译,可解决这个问题,确实,上次我就是这样搞得。

  这次换个思路,yum有个很好的参数yum provides snmpwalk,即查询snmpwal隶属于哪个yum包,这样就很方便了:

[root@Manager2 Desktop]# yum provides */snmpwalk
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: mirrors.grandcloud.cn
* extras: mirrors.grandcloud.cn
* updates: mirrors.grandcloud.cn
updates/filelists_db                                     | 1.7 MB     00:00
1:net-snmp-utils-5.5-41.el6.x86_64 : Network management utilities using SNMP,
                                   : from the NET-SNMP project
Repo        : base
Matched from:
Filename    : /usr/bin/snmpwalk

1:net-snmp-utils-5.5-41.el6_3.1.x86_64 : Network management utilities using
                                       : SNMP, from the NET-SNMP project
Repo        : updates
Matched from:
Filename    : /usr/bin/snmpwalk

这样就知道snmpwalk属于net-snmp-utils,然后使用yum安装这个包即可

[root@Manager2 Desktop]# yum install net-snmp-utils

使用yum前请配置好yum源,百度下,很easy的!

posted @ 2012-09-06 13:28  xiahaitao  阅读(2077)  评论(3编辑  收藏  举报