×

cacti安装spine 解决WARNING: Result from CMD not valid. Partial Result: U错误

hqy hqy 发表于2020-03-19 12:57:13 浏览2049 评论0

抢沙发发表评论

安装spine用来替换cacti原本的执行方式,需要的包在附件中,请注意spine的安装包和你安装的cacti版本不用相同,最好是最新的spine
1.安装gcc
#yum install -y gcc mysql-devel net-snmp-devel
没有mysql-devel,会提示cannot find mysql headers错误
没有net-snmp-devel ,会提示cannot find snmp headers
2.安装spine
#tar zxvf cacti-spine-0.8.8b.tar.gz
#cd cacti-spine-0.8.8b

#./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://kinber.cn/post/1183.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客