Cacti-spine安装配置
Cacti-spine是一个替换Cacti默认Poller Type如cmd.php1、下载Cacti-spine最新版本,(要同使用的cacti版本相匹配)
下载地址:http://www.cacti.net/downloads/spine/
2、安装(注意需要安装net-snmp-devel的包,因为需要net-snmp的.h文件)
$ ./configure --prefix=/home/cacti/apps/spine
$ make -j 10
$ make install
3、安装后,要对配置文件进行修改
$ 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文件)
# ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
5、验证spine是否正常
$ /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
页:
[1]