cacti安装spine替换cmd.php轮询器,效率更高

Cacti-spine是一个替换Cacti默认Poller Type  cmd.php
1、下载Cacti-spine最新版本,(要同使用的cacti版本相匹配)
下载地址:http://www.cacti.net/downloads/spine/

2、安装(注意需要安装net-snmp-devel的包,因为需要net-snmp的.h文件)
[cacti@test-22 cacti-spine-0.8.7e]$ ./configure --prefix=/home/cacti/apps/spine
[cacti@test-22 cacti-spine-0.8.7e]$ make
[cacti@test-22 cacti-spine-0.8.7e]$ make  install

3、安装后,要对配置文件进行修改
[cacti@test-22 ~]$ vim /home/cacti/apps/spine/etc/spine.conf
DB_Host localhost
DB_Database cacti
DB_User cacti
DB_Pass cacti
DB_Port 3306

4、验证spine是否正常
[cacti@test-22 ~]$ /home/cacti/apps/spine/bin/spine
SPINE: Using spine config file [spine.conf]
SPINE: Version 0.8.7e starting
SPINE: Time: 1.7967 s, Threads: 1, Hosts: 11
如上提示表示安装成功!

如果出现 SPINE: Poller[0] FATAL: Unable to read configuration file! (Spine init)
可能是你的spine.conf配置文件出错,仔细检查。
5、修改Cacti配置
Console -> Cacti Settings->Paths->Spine Poller File Path
填入cacti-spine安装路径
/home/cacti/apps/spine/bin/spine

6、修改Cacti使用的Poller Type
Console -> Cacti Settings->Poller->Poller Type
在下拉中选择spine切换到spine

您可以选择一种方式赞助本站

支付宝转账赞助

支付宝扫一扫赞助

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

图片 表情