Cacti-spine安装配置

Cacti-spine是一个替换Cacti默认Poller Type如cmd.php
1、下载Cacti-spine最新版本,(要同使用的cacti版本相匹配)
 
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 -j 10
[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默认会去读取该sock文件)
[root@test-22 ~]# ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
 
5、验证spine是否正常
[cacti@test-22 ~]$ /home/cacti/apps/spine/bin/spine
 
6、修改Cacti配置
Console -> Cacti Settings->Paths->Spine Poller File Path
填入cacti-spine安装路径
/home/cacti/apps/spine/bin/spine

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

你可能感兴趣的:(cacti)