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.gzand then you want to:
cd cacti-spine-0.8.7aFrom this directory, you will need to run:
./configureNow when I did this, I got into loads of problems, because it was telling me that:
error: cannot run /bin/bash conifg/config.subTo get around this, I had to run:
sudo apt-get install libmysqlclient15-dev libsnmp9-dev automake libtoolThen I was able to run:
aclocalIn that order. Each of the above lines needs to be run separetely. Once you successfully run the ./configure, you can run:
libtoolize --force
autoconf
autoheader
automake
./configure
maketo make the binary. Now once that has gone through for you, you will need to create a directory:
sudo mkdir /usr/local/spineand then execute:
sudo cp spine* /usr/local/spineThis 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.confand modify the configuration to the proper settings for your cacti database instance. If you used my previous guide your information should be:
DB_Host localhostYou will replace the xxxxxx with the password that you setup for your Cacti database during the installation.
DB_Database cacti
DB_User cacti
DB_Pass xxxxxx
DB_Port 3306
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/spineWhen 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!
Reference 1
Reference 2
4 comments:
Thanks! it's worked to me!!!
great, thanks for the feedback!
Thank you very much sir, it worked me perfectly.
I have cacti installed and working. Now I just need Spine.
I followed your helpful guide. libsnmp9-dev gave me an error, so I just installed automake and libtool.
I run into issues with ./configure. It doesn't know where to find my snmp headers. I have tried the following without success:
--with-snmp=/usr/local
--with-snmp=/etc/
--with-snmp=/usr/lib
--with-snmp=/usr/share
--with-snmp=/etc/perl
--with-snmp=/var/lib
This may be irrelevant, but another post somewhere mentioned running a find
/packages/cacti-spine-0.8.7e$ sudo find / -name libnet\* -print
[sudo] password for sam:
/usr/lib/libnetsnmptrapd.so.15
/usr/lib/libnetsnmpmibs.so.15.1.0
/usr/lib/libnetsnmpagent.so.15.1.0
/usr/lib/libnetsnmpagent.so.15
/usr/lib/libnetsnmptrapd.so.15.1.0
/usr/lib/libnetsnmp.so.15
/usr/lib/libnetsnmpmibs.so.15
/usr/lib/libnetsnmphelpers.so.15
/usr/lib/libnetsnmphelpers.so.15.1.0
/usr/lib/libnetsnmp.so.15.1.0
/usr/share/perl/5.8.8/Net/libnetFAQ.pod
/usr/share/doc/libnet-daemon-perl
/usr/share/man/man1/libnetcfg.1.gz
/usr/share/man/man3/libnetlink.3.gz
/usr/bin/libnetcfg
/etc/perl/Net/libnet.cfg
/var/lib/dpkg/info/libnet-daemon-perl.md5sums
/var/lib/dpkg/info/libnet-daemon-perl.list
/var/cache/apt/archives/libnet-daemon-perl_0.38-1.1_all.deb
I am not sure what context it assumes for net-snmp.
Post a Comment