wshq 发表于 2019-1-9 10:44:03

Cacti安装高效轮询器spine(转)

  Cacti默认轮询器cmd.php执行效率有点低,spine为C语言编写的组件,性能要好许多。
  编译安装spine需以下软件支持:
  1 net-snmp-devel
  2 mysql
  3 mysql-devel
  4 openssl-devel
  5 gcc
  安装spine要和Cacti的版本相匹配,本文以最新版cacti0.8.8a安装为例。
  1 cd /usr/local/src/
  2 wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8a.tar.gz
  3 tar -zxvf cacti-spine-0.8.8a.tar.gz
  4 cd cacti-spine-0.8.8a
  编译:
  5 ./configure
  6 make && make instatll
  配置spine:
  1 cd /usr/local/spine/etc/
  2 mv spine.conf.dist/etc/spine.conf
  3 vi spine.conf
  填写数据库信息,即Cacti数据库。
  DB_Host         localhost
  DB_Database   cacti
  DB_User         root
  DB_Pass         cacti
  DB_Port         3306
  设置spine路径,Console——Settings——Paths
  cacti设置spine路径
  /usr/local/spine/bin/spine
  更改cacti轮询器为spine,Console——Settings——Poller
  cacti更改轮询器为spine
  运行:
  #/usr/local/spine/bin/spine
  SPINE: Using spine config file
  SPINE: Version 0.8.7g starting
  SPINE: Time: 0.2410 s, Threads: 5, Hosts: 2
  说明:spine默认配置文件需要放在/etc才会生效,否则报如下错误:
  SPINE: Poller FATAL: Unable to read configuration file! (Spine init)

页: [1]
查看完整版本: Cacti安装高效轮询器spine(转)