zoukankan      html  css  js  c++  java
  • 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的!

  • 相关阅读:
    vue中webpack和less填坑:项目运行起来报错TypeError: this.getOptions is not a function
    js避坑历险记
    npm -S -D -g i 有什么区别
    Java 中无返回值的方法在使用时应该注意的问题
    java中方法的重载和覆盖
    Java中的内存划分
    git常用操作
    java代码书写易犯错误
    Java基础知识了解
    粘性定位position:sticky
  • 原文地址:https://www.cnblogs.com/xia/p/2673299.html
Copyright © 2011-2022 走看看