#./configure
#make && make install
#cp /usr/local/spine/etc/spine.conf.dist /etc/spine.conf
#vi /etc/spine.conf
修改为你的Cacti数据库相关信息。DB_User和DB_Pass
从better-cacti-templates-1.1.8.tar.gz的scripts中将ss_get_by_ssh.php拷贝到/var/www/html/cacti/scripts目录下
#/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: 1, Hosts: 4
如果是其他输出如FATAL: Unable to read configuration file! (Spine init)可能配置文件有错误。
如果提示Could not open input file /var/www/html/cacti/scripts/ss_get_by_ssh.php,那从better-cacti-templates-1.1.8.tar.gz的scripts中拷贝上去
a)以admin用户登录到Cacti。
b)从目录菜单中选择设置”Settings”,选择”Paths”选项卡。
c)在”Spine Poller File Path”中输入Spine可执行程序的完整路径,我的是/usr/local/spine/bin/spine,保存设置。
d)选择”Poller”选项卡。
e)在”Poller Type”下拉框设置中,选择”spine”。
附件:
https://app.yinxiang.com/shard/s41/res/c1968f85-3a47-4c33-a0a0-0bfc8610afbd/better-cacti-templates-1.1.8.tar.gz
https://app.yinxiang.com/shard/s41/res/042070d5-6a6c-4697-9114-d9110c081d6f/cacti-spine-0.8.8b.tar.gz