Installing Spined for Cacti on Ubuntu 8.04
So to jazz things up again, I wanted to move away from the PHP poller, and install Spined, which is the poller daemon that can be used instead of the PHP program and is much more efficient for larger systems.
To start with, you want to download the latest version of Spine from the website here. Once you have downloaded the tar ball (I downloaded it to my /home/george directory (you will want to change george to whatever your current user is)), and run:
tar zxvf cacti-spine-0.8.7a.tar.gz
and then you want to:
cd cacti-spine-0.8.7a
From this directory, you will need to run:
./configure
Now when I did this, I got into loads of problems, because it was telling me that:
error: cannot run /bin/bash conifg/config.sub
To get around this, I had to run:
sudo apt-get install libmysqlclient15-dev libsnmp9-dev automake libtool
Then I was able to run:
aclocal
libtoolize –force
autoconf
autoheader
automake
./configure
In that order. Each of the above lines needs to be run separetely. Once you successfully run the ./configure, you can run:
make
to make the binary. Now once that has gone through for you, you will need to create a directory:
sudo mkdir /usr/local/spine
and then execute:
sudo cp spine* /usr/local/spine
This will move the spine binary and spine.conf files from your /home directory to the /usr/local/spine directory.
Then you want to run:
sudo joe /usr/local/spine/spine.conf
and modify the configuration to the proper settings for your cacti database instance. If you used my previous guide your information should be:
DB_Host localhost
DB_Database cacti
DB_User cacti
DB_Pass xxxxxx
DB_Port 3306
You will replace the xxxxxx with the password that you setup for your Cacti database during the installation.
Finally you will need to login to Cacti, and go to Console > Settings > Paths, and modify the path for Spine under the Alternative Poller Path section:
/usr/local/spine/spine
When you click on save, the words under the path field for Spine should read:
[OK: FILE FOUND]
Then you will want to click on the Poller tab and set this from cmd.php to spine and save your settings. This should be it and you should be using Spine as your poller!
Thanks! it's worked to me!!!