spine是一个基于C语言的,非常快速的轮询引擎。使用 spine 比 使用 cmd.php  效率高,特别是在当 cmd.php 执行接近或超过 300 秒的时候。cmd.php采集存在大的延迟,从添加设备到up,spine通常不到一分钟,而cmd.php等的时间较长,超过10分钟。当设备down后 2分钟之内spine可以发出alert,而cmd.php可能需要10分钟以上。

yum install cacti-spine -y

配置
chmod +r /etc/spine.conf
vim /etc/spine.conf

创建一个软链接文件(因为spine默认会去读取该sock文件)
ln -s /tmp/mysql.sock /var/lib/mysql/mysql.sock
验证spine是否正常
/bin/spine

用管理员帐号登陆Cacti.在系统参数中制定Spine/Cactid的物理路径.
Console -> Configuration -> Settings -> Paths -> Alternate Poller Path -> Spine Poller File Path
/usr/bin/spine
Cacti Settings (Poller)-> Poller Type
spine

 

Cacti在centos上的安装:

yum -y install http php rrdtool rrdtool-devel net-snmp net-snmp-devel net-snmp-utils php-snmp mysql mysql-server perl-DBI perl-DBD-MySQL

需要安装yum扩展源:

 

原创文章,转载请注明: 转载自素食勤俭敬老孝慈

本文链接地址: cacti和spine的安装使用

文章的脚注信息由WordPress的wp-posturl插件自动生成

Tags: ,

1,295 views

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <font color="" face="" size=""> <span style="">