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

it2022-05-05  58

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

 

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

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

[root@Manager2 Desktop]# yum provides */snmpwalkLoaded plugins: fastestmirror, refresh-packagekitLoading mirror speeds from cached hostfile * base: mirrors.grandcloud.cn * extras: mirrors.grandcloud.cn * updates: mirrors.grandcloud.cnupdates/filelists_db                                     | 1.7 MB     00:001:net-snmp-utils-5.5-41.el6.x86_64 : Network management utilities using SNMP,                                   : from the NET-SNMP projectRepo        : baseMatched 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 projectRepo        : updatesMatched from:Filename    : /usr/bin/snmpwalk

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

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

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

转载于:https://www.cnblogs.com/xia/archive/2012/09/06/2673299.html


最新回复(0)