Saturday, December 10, 2011

Cacti > Installing Spine

Spine is the fast replacement for cmd.php. It is written in C to ensure ultimate performance for device polling. Expect a decrease in polling time of an order of magnitude. Polling times far less than 60 seconds for about 20,000 data sources are achievable e.g. on a dual XEON system supplied with 4 GB RAM and standard local disks.

When using Spine, don't change crontab settings! Always use poller.php with crontab! To activate Spine instead of cmd.php, please visit Settings and select the Poller tab. Select Spine and save. Now, poller.php will use Spine on all subsequent polling cycles.

While Spine is really fast, choosing the correct setup will ensure, that all processor resources are used. Required settings for Maximum Concurrent Poller Processes are 1-2 times the number of CPU cores available for Spine.

Download Spine from the following links: - Working but realtime is not displaying images - This is the version I used on my system

Version Compatibility:


1. Download and install first the dependencies:

#yum install net-snmp-devel mysql mysql-devel openssl-devel ksh automake autoconf libtool gcc make -y

#cd /opt
#tar -xvzf cacti-spine-0.8.7.tar.gz
#cd cacti-spine-0.8.7
#chmod 744 ./configure
#make install
#cp /usr/local/spine/etc/spine.conf /etc/spine.conf

2. Edit "/etc/spine.conf" to match cacti's config.php

*DB_Host should be the same with include/config.php

DB_Host               localhost
DB_Database        cacti
DB_User               cactiuser
DB_Pass               cactiuser
DB_Port               3306
DB_PreG              0

3. Login to Cacti's Web interface - Within the cacti GUI add the spine binary path

Settings > Paths '/usr/local/spine/bin/spine'

and then under the Poller tab change the type from cmd.php to Spine.

You can verify you logs by:

#tail -f /var/www/cacti/log/cacti.log

Referrence: - Spine Documentation


  1. I really love your blog there's a lot to share. Keep it up.Visit my site too.

  2. Spot on with this write-up, I actually assume this web site wants much more consideration. I’ll in all probability be once more to read far more, thanks for that info. real money casino