19
2020
03

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



推荐点击下面图片,通过本站淘宝优惠价购买:

image.png

安装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://hqyman.cn/post/1183.html 非本站原创文章欢迎转载,原创文章需保留本站地址!

分享到:





休息一下,本站随机推荐观看栏目:


« 上一篇 下一篇 »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

您的IP地址是: