Cacti, DirectAdmin : Install Spine 0.8.7d as a poller instead of a default one.

By BXTra |
I would like to use Spine instead of default Cacti's poller. At first, I'm thinking about to use Dag repository. It should work easily if I don't have DirectAdmin installed. However, I do have DirectAdmin installed and that caused dependencies problem when I tried to yum install it.

So, I need to compile Spine by myself. I checked at Cacti website and found "Compiling Spine for Redhat/Fedora Linux" The steps seem to be easy but it's not. I got and error :

configure: error: cannot run /bin/sh config/config.sub

So, here is what I did to install Spine.

1. Get Spine 0.8.7d
shell> wget

2. Extract it.
tar xzvf cacti-spine-0.8.7d.tar.gz
cd cacti-spine-0.8.7d

3. Compile it. I've searched and found many people said that I need to do the following steps :
libtoolize --force

However, I got the following error when I run "automake" required file `config/config.guess' not found   `automake --add-missing' can install `config.guess' required file `config/config.sub' not found   `automake --add-missing' can install `config.sub'

So, here is what I did (Do steps below only):
libtoolize --force
automake --add-missing

So, it will look like below :
shell> aclocal
shell> libtoolize --force
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: linking file `config/'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in
libtoolize: `AC_PROG_RANLIB' is rendered obsolete by `LT_INIT'
shell> autoconf
shell> autoheader
shell> automake --add-missing installing `config/config.guess' installing `config/config.sub'
shell> ./configure 
shell> make

4. Copy Spine to /usr/local/bin and Spine.conf to /etc
cp spine /usr/local/bin
cp spine.conf.dist /etc/spine.conf

5. Set Spine Configuration.
cd /etc
nano -w spine.conf

Set Spine Configuration below :
DB_Host         localhost
DB_Database     cacti
DB_User         cactiuser
DB_Pass         somepassword
DB_Port         3306

6. Log into Cacti. Set Spine Path in Settings :

At Console -> Configuration -> Settings -> Paths -> Spine Poller File Path Set it to /usr/local/bin/spine

7. Set Cacti to use Spine

At Console -> Configuration -> Settings -> Poller -> Poller Type
Change it from cmd.php to Spine

Note : For Crontab that is set before. Do not remove it. That Crontab will pick poller type by itself from what we set in the Cacti Settings.

I also recommend to read this more information about Cacti at ->

Add new comment

  • No HTML tags allowed.
  • Web page addresses and email addresses turn into links automatically.
  • Lines and paragraphs break automatically.
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.