spine是一个基于C语言的,非常快速的轮询引擎。它是默认的cmd.php的可选替代,主要是为了加快SNMP轮训。如果你的cmd.php 运行超过300 秒的话,推荐使用Spine。本文主要讲解如何安装配置spine替代cmd.php。
debian cacti 0.8.8b
Cacti Spine 源码包下载地址
安装依赖包:
yum install -y net-snmp-devel openssl-devel mysql-devel
wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.8b.tar.gz
解压编译
tar zxf cacti-spine-0.8.8b.tar.gz
./configure --with-mysql=/usr/local/mysql
make && make install
cp /usr/local/spine/etc/spine.conf.dist /usr/local/spine/etc
vi /etc/spine.conf
DB_Host localhost
DB_Database cacti
DB_User cacti
DB_Pass *********
DB_Port 3306
DB_PreG 0
修改为你的Cacti数据库相关信息,然后执行如下命令
/usr/local/spine/bin/spine
SPINE: Using spine config file [/etc/spine.conf]
SPINE: Version 0.8.7i starting
SPINE: Time: 1.1416 s, Threads