install spine on RHEL-5/CentOS-5

Quick and dirty how-to how to install the spine poller for cacti on centos or rhel 5. This is useful if you have a ton of sources being polled.

yum install net-snmp-devel mysql mysql-devel openssl-devel ksh automake autoconf libtool gcc make -y
cd
wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.7c.tar.gz
tar -xvzf cacti-spine-0.8.7c.tar.gz
cd cacti-spine-0.8.7c
chmod 744 ./configure
autoconf
autoheader
automake
./configure
make
make install
cp /usr/local/spine/etc/spine.conf.dist /etc/spine.conf
edit ‘/etc/spine.conf’ to match cacti’s config.phpWithin the cacti GUI add the spine binary path in Settings > Paths ‘/usr/local/spine/bin/spine’ and then under the Poller tab change the type from cmd.php to Spine.

Current repolist
repo id repo name status
addons CentOS-5 – Addons enabled : 0
base CentOS-5 – Base enabled : 3,272
centosplus CentOS-5 – Plus enabled : 63
contrib CentOS-5 – Contrib enabled : 0
epel Epel from fedora enabled : 4,970
extras CentOS-5 – Extras enabled : 266
updates CentOS-5 – Updates enabled : 258

I have noted below a complete raw install of the newer version of spine.  Note that some of the auto* commands differ from the previous version…

[root@testme html]# cat /etc/redhat-release; uname -m
CentOS release 5.4 (Final)
x86_64
[root@testme html]# yum repolist
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: hpc.arc.georgetown.edu
* base: mirrors.cmich.edu
* epel: mirrors.rit.edu
* extras: updates.interworx.info
* updates: updates.interworx.info
repo id                                                                                            repo name                                                                                                                                 status
addons                                                                                             CentOS-5 – Addons                                                                                                                         enabled:     0
base                                                                                               CentOS-5 – Base                                                                                                                           enabled: 3,434
epel                                                                                               Extra Packages for Enterprise Linux 5 – x86_64                                                                                            enabled: 5,675
extras                                                                                             CentOS-5 – Extras                                                                                                                         enabled:   298
updates                                                                                            CentOS-5 – Updates                                                                                                                        enabled:   541
repolist: 9,948
[root@testme html]# yum install net-snmp-devel mysql mysql-devel openssl-devel ksh automake autoconf libtool gcc make -y
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: hpc.arc.georgetown.edu
* base: mirrors.cmich.edu
* epel: mirrors.rit.edu
* extras: updates.interworx.info
* updates: updates.interworx.info
Setting up Install Process
Package mysql-5.0.77-4.el5_5.3.x86_64 already installed and latest version
Package mysql-5.0.77-4.el5_5.3.i386 already installed and latest version
Resolving Dependencies
–> Running transaction check
—> Package autoconf.noarch 0:2.59-12 set to be updated
–> Processing Dependency: imake for package: autoconf
–> Processing Dependency: m4 for package: autoconf
—> Package automake.noarch 0:1.9.6-2.3.el5 set to be updated
—> Package gcc.x86_64 0:4.1.2-48.el5 set to be updated
–> Processing Dependency: cpp = 4.1.2-48.el5 for package: gcc
–> Processing Dependency: libgomp >= 4.1.2-48.el5 for package: gcc
–> Processing Dependency: libgcc >= 4.1.2-48.el5 for package: gcc
–> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc
—> Package ksh.x86_64 0:20100202-1.el5 set to be updated
—> Package libtool.x86_64 0:1.5.22-7.el5_4 set to be updated
—> Package make.x86_64 1:3.81-3.el5 set to be updated
—> Package mysql-devel.i386 0:5.0.77-4.el5_5.3 set to be updated
—> Package mysql-devel.x86_64 0:5.0.77-4.el5_5.3 set to be updated
—> Package net-snmp-devel.i386 1:5.3.2.2-9.el5_5.1 set to be updated
–> Processing Dependency: libnetsnmpagent.so.10 for package: net-snmp-devel
–> Processing Dependency: libnetsnmptrapd.so.10 for package: net-snmp-devel
–> Processing Dependency: elfutils-devel for package: net-snmp-devel
–> Processing Dependency: elfutils-libelf-devel for package: net-snmp-devel
–> Processing Dependency: libnetsnmpmibs.so.10 for package: net-snmp-devel
–> Processing Dependency: libsnmp.so.10 for package: net-snmp-devel
–> Processing Dependency: libnetsnmphelpers.so.10 for package: net-snmp-devel
–> Processing Dependency: libnetsnmp.so.10 for package: net-snmp-devel
–> Processing Dependency: rpm-devel for package: net-snmp-devel
–> Processing Dependency: lm_sensors-devel for package: net-snmp-devel
–> Processing Dependency: beecrypt-devel for package: net-snmp-devel
—> Package net-snmp-devel.x86_64 1:5.3.2.2-9.el5_5.1 set to be updated
—> Package openssl-devel.i386 0:0.9.8e-12.el5_4.6 set to be updated
–> Processing Dependency: openssl = 0.9.8e-12.el5_4.6 for package: openssl-devel
–> Processing Dependency: zlib-devel for package: openssl-devel
–> Processing Dependency: krb5-devel for package: openssl-devel
—> Package openssl-devel.x86_64 0:0.9.8e-12.el5_4.6 set to be updated
–> Running transaction check
—> Package beecrypt-devel.x86_64 0:4.1.2-10.1.1 set to be updated
–> Processing Dependency: beecrypt = 4.1.2-10.1.1 for package: beecrypt-devel
–> Processing Dependency: libbeecrypt.so.6()(64bit) for package: beecrypt-devel
—> Package cpp.x86_64 0:4.1.2-48.el5 set to be updated
—> Package elfutils-devel.x86_64 0:0.137-3.el5 set to be updated
–> Processing Dependency: elfutils-libs-x86_64 = 0.137-3.el5 for package: elfutils-devel
–> Processing Dependency: elfutils-devel-static-x86_64 = 0.137-3.el5 for package: elfutils-devel
–> Processing Dependency: libdw.so.1()(64bit) for package: elfutils-devel
–> Processing Dependency: libasm.so.1()(64bit) for package: elfutils-devel
—> Package elfutils-libelf-devel.x86_64 0:0.137-3.el5 set to be updated
–> Processing Dependency: elfutils-libelf-devel-static-x86_64 = 0.137-3.el5 for package: elfutils-libelf-devel
—> Package glibc-devel.x86_64 0:2.5-49.el5_5.4 set to be updated
–> Processing Dependency: glibc = 2.5-49.el5_5.4 for package: glibc-devel
–> Processing Dependency: glibc-headers = 2.5-49.el5_5.4 for package: glibc-devel
–> Processing Dependency: glibc-headers for package: glibc-devel
—> Package imake.x86_64 0:1.0.2-3 set to be updated
—> Package krb5-devel.x86_64 0:1.6.1-36.el5_5.5 set to be updated
–> Processing Dependency: krb5-libs = 1.6.1-36.el5_5.5 for package: krb5-devel
–> Processing Dependency: libselinux-devel for package: krb5-devel
–> Processing Dependency: e2fsprogs-devel for package: krb5-devel
–> Processing Dependency: keyutils-libs-devel for package: krb5-devel
—> Package libgcc.i386 0:4.1.2-48.el5 set to be updated
—> Package libgcc.x86_64 0:4.1.2-48.el5 set to be updated
—> Package libgomp.x86_64 0:4.4.0-6.el5 set to be updated
—> Package lm_sensors-devel.x86_64 0:2.10.7-9.el5 set to be updated
—> Package m4.x86_64 0:1.4.5-3.el5.1 set to be updated
—> Package net-snmp-libs.i386 1:5.3.2.2-9.el5_5.1 set to be updated
—> Package openssl.i686 0:0.9.8e-12.el5_4.6 set to be updated
—> Package openssl.x86_64 0:0.9.8e-12.el5_4.6 set to be updated
—> Package rpm-devel.x86_64 0:4.4.2.3-18.el5 set to be updated
–> Processing Dependency: sqlite-devel for package: rpm-devel
–> Processing Dependency: nss-devel for package: rpm-devel
—> Package zlib-devel.x86_64 0:1.2.3-3 set to be updated
–> Running transaction check
—> Package beecrypt.x86_64 0:4.1.2-10.1.1 set to be updated
—> Package e2fsprogs-devel.x86_64 0:1.39-23.el5 set to be updated
—> Package elfutils-devel-static.x86_64 0:0.137-3.el5 set to be updated
—> Package elfutils-libelf-devel-static.x86_64 0:0.137-3.el5 set to be updated
—> Package elfutils-libs.x86_64 0:0.137-3.el5 set to be updated
—> Package glibc.i686 0:2.5-49.el5_5.4 set to be updated
–> Processing Dependency: glibc-common = 2.5-49.el5_5.4 for package: glibc
—> Package glibc.x86_64 0:2.5-49.el5_5.4 set to be updated
—> Package glibc-headers.x86_64 0:2.5-49.el5_5.4 set to be updated
–> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers
–> Processing Dependency: kernel-headers for package: glibc-headers
—> Package keyutils-libs-devel.x86_64 0:1.2-1.el5 set to be updated
—> Package krb5-libs.i386 0:1.6.1-36.el5_5.5 set to be updated
—> Package krb5-libs.x86_64 0:1.6.1-36.el5_5.5 set to be updated
—> Package libselinux-devel.x86_64 0:1.33.4-5.5.el5 set to be updated
–> Processing Dependency: libsepol-devel >= 1.15.2-1 for package: libselinux-devel
—> Package nss-devel.x86_64 0:3.12.6-2.el5.centos set to be updated
–> Processing Dependency: nss = 3.12.6-2.el5.centos for package: nss-devel
–> Processing Dependency: nspr-devel >= 4.8.4 for package: nss-devel
–> Processing Dependency: pkgconfig for package: nss-devel
—> Package sqlite-devel.x86_64 0:3.3.6-5 set to be updated
–> Running transaction check
—> Package glibc-common.x86_64 0:2.5-49.el5_5.4 set to be updated
—> Package kernel-headers.x86_64 0:2.6.18-194.8.1.el5 set to be updated
—> Package libsepol-devel.x86_64 0:1.15.2-3.el5 set to be updated
–> Processing Dependency: libsepol = 1.15.2-3.el5 for package: libsepol-devel
—> Package nspr-devel.x86_64 0:4.8.4-1.el5_4 set to be updated
–> Processing Dependency: nspr = 4.8.4-1.el5_4 for package: nspr-devel
—> Package nss.i386 0:3.12.6-2.el5.centos set to be updated
—> Package nss.x86_64 0:3.12.6-2.el5.centos set to be updated
—> Package pkgconfig.x86_64 1:0.21-2.el5 set to be updated
–> Running transaction check
—> Package libsepol.i386 0:1.15.2-3.el5 set to be updated
—> Package libsepol.x86_64 0:1.15.2-3.el5 set to be updated
—> Package nspr.i386 0:4.8.4-1.el5_4 set to be updated
—> Package nspr.x86_64 0:4.8.4-1.el5_4 set to be updated
–> Finished Dependency Resolution

Dependencies Resolved

===========================================================================================================================================================================================================================================================
Package                                                                   Arch                                                Version                                                          Repository                                            Size
===========================================================================================================================================================================================================================================================
Installing:
autoconf                                                                  noarch                                              2.59-12                                                          base                                                 647 k
automake                                                                  noarch                                              1.9.6-2.3.el5                                                    base                                                 476 k
gcc                                                                       x86_64                                              4.1.2-48.el5                                                     base                                                 5.3 M
ksh                                                                       x86_64                                              20100202-1.el5                                                   base                                                 1.2 M
libtool                                                                   x86_64                                              1.5.22-7.el5_4                                                   base                                                 667 k
make                                                                      x86_64                                              1:3.81-3.el5                                                     base                                                 470 k
mysql-devel                                                               i386                                                5.0.77-4.el5_5.3                                                 updates                                              2.4 M
mysql-devel                                                               x86_64                                              5.0.77-4.el5_5.3                                                 updates                                              2.5 M
net-snmp-devel                                                            i386                                                1:5.3.2.2-9.el5_5.1                                              updates                                              1.9 M
net-snmp-devel                                                            x86_64                                              1:5.3.2.2-9.el5_5.1                                              updates                                              2.0 M
openssl-devel                                                             i386                                                0.9.8e-12.el5_4.6                                                base                                                 1.9 M
openssl-devel                                                             x86_64                                              0.9.8e-12.el5_4.6                                                base                                                 1.9 M
Installing for dependencies:
beecrypt                                                                  x86_64                                              4.1.2-10.1.1                                                     base                                                  87 k
beecrypt-devel                                                            x86_64                                              4.1.2-10.1.1                                                     base                                                 118 k
cpp                                                                       x86_64                                              4.1.2-48.el5                                                     base                                                 2.9 M
e2fsprogs-devel                                                           x86_64                                              1.39-23.el5                                                      base                                                 632 k
elfutils-devel                                                            x86_64                                              0.137-3.el5                                                      base                                                  62 k
elfutils-devel-static                                                     x86_64                                              0.137-3.el5                                                      base                                                 119 k
elfutils-libelf-devel                                                     x86_64                                              0.137-3.el5                                                      base                                                  24 k
elfutils-libelf-devel-static                                              x86_64                                              0.137-3.el5                                                      base                                                  64 k
elfutils-libs                                                             x86_64                                              0.137-3.el5                                                      base                                                 183 k
glibc-devel                                                               x86_64                                              2.5-49.el5_5.4                                                   updates                                              2.4 M
glibc-headers                                                             x86_64                                              2.5-49.el5_5.4                                                   updates                                              592 k
imake                                                                     x86_64                                              1.0.2-3                                                          base                                                 319 k
kernel-headers                                                            x86_64                                              2.6.18-194.8.1.el5                                               updates                                              1.1 M
keyutils-libs-devel                                                       x86_64                                              1.2-1.el5                                                        base                                                  27 k
krb5-devel                                                                x86_64                                              1.6.1-36.el5_5.5                                                 updates                                              1.9 M
libgomp                                                                   x86_64                                              4.4.0-6.el5                                                      base                                                  68 k
libselinux-devel                                                          x86_64                                              1.33.4-5.5.el5                                                   base                                                 149 k
libsepol-devel                                                            x86_64                                              1.15.2-3.el5                                                     base                                                 192 k
lm_sensors-devel                                                          x86_64                                              2.10.7-9.el5                                                     base                                                  85 k
m4                                                                        x86_64                                              1.4.5-3.el5.1                                                    base                                                 171 k
net-snmp-libs                                                             i386                                                1:5.3.2.2-9.el5_5.1                                              updates                                              1.3 M
nspr-devel                                                                x86_64                                              4.8.4-1.el5_4                                                    updates                                              111 k
nss-devel                                                                 x86_64                                              3.12.6-2.el5.centos                                              updates                                              233 k
pkgconfig                                                                 x86_64                                              1:0.21-2.el5                                                     base                                                  61 k
rpm-devel                                                                 x86_64                                              4.4.2.3-18.el5                                                   base                                                 1.3 M
sqlite-devel                                                              x86_64                                              3.3.6-5                                                          base                                                 257 k
zlib-devel                                                                x86_64                                              1.2.3-3                                                          base                                                 102 k
Updating for dependencies:
glibc                                                                     i686                                                2.5-49.el5_5.4                                                   updates                                              5.3 M
glibc                                                                     x86_64                                              2.5-49.el5_5.4                                                   updates                                              4.7 M
glibc-common                                                              x86_64                                              2.5-49.el5_5.4                                                   updates                                               16 M
krb5-libs                                                                 i386                                                1.6.1-36.el5_5.5                                                 updates                                              662 k
krb5-libs                                                                 x86_64                                              1.6.1-36.el5_5.5                                                 updates                                              675 k
libgcc                                                                    i386                                                4.1.2-48.el5                                                     base                                                  95 k
libgcc                                                                    x86_64                                              4.1.2-48.el5                                                     base                                                  98 k
libsepol                                                                  i386                                                1.15.2-3.el5                                                     base                                                 128 k
libsepol                                                                  x86_64                                              1.15.2-3.el5                                                     base                                                 131 k
nspr                                                                      i386                                                4.8.4-1.el5_4                                                    updates                                              120 k
nspr                                                                      x86_64                                              4.8.4-1.el5_4                                                    updates                                              119 k
nss                                                                       i386                                                3.12.6-2.el5.centos                                              updates                                              1.1 M
nss                                                                       x86_64                                              3.12.6-2.el5.centos                                              updates                                              1.1 M
openssl                                                                   i686                                                0.9.8e-12.el5_4.6                                                base                                                 1.4 M
openssl                                                                   x86_64                                              0.9.8e-12.el5_4.6                                                base                                                 1.4 M

Transaction Summary
===========================================================================================================================================================================================================================================================
Install     39 Package(s)
Update      15 Package(s)
Remove       0 Package(s)

Total download size: 69 M
Downloading Packages:
(1/54): elfutils-libelf-devel-0.137-3.el5.x86_64.rpm                                                                                                                                                                                |  24 kB     00:00
(2/54): keyutils-libs-devel-1.2-1.el5.x86_64.rpm                                                                                                                                                                                    |  27 kB     00:00
(3/54): pkgconfig-0.21-2.el5.x86_64.rpm                                                                                                                                                                                             |  61 kB     00:00
(4/54): elfutils-devel-0.137-3.el5.x86_64.rpm                                                                                                                                                                                       |  62 kB     00:00
(5/54): elfutils-libelf-devel-static-0.137-3.el5.x86_64.rpm                                                                                                                                                                         |  64 kB     00:00
(6/54): libgomp-4.4.0-6.el5.x86_64.rpm                                                                                                                                                                                              |  68 kB     00:00
(7/54): lm_sensors-devel-2.10.7-9.el5.x86_64.rpm                                                                                                                                                                                    |  85 kB     00:00
(8/54): beecrypt-4.1.2-10.1.1.x86_64.rpm                                                                                                                                                                                            |  87 kB     00:00
(9/54): libgcc-4.1.2-48.el5.i386.rpm                                                                                                                                                                                                |  95 kB     00:00
(10/54): libgcc-4.1.2-48.el5.x86_64.rpm                                                                                                                                                                                             |  98 kB     00:00
(11/54): zlib-devel-1.2.3-3.x86_64.rpm                                                                                                                                                                                              | 102 kB     00:00
(12/54): nspr-devel-4.8.4-1.el5_4.x86_64.rpm                                                                                                                                                                                        | 111 kB     00:00
(13/54): beecrypt-devel-4.1.2-10.1.1.x86_64.rpm                                                                                                                                                                                     | 118 kB     00:00
(14/54): nspr-4.8.4-1.el5_4.x86_64.rpm                                                                                                                                                                                              | 119 kB     00:00
(15/54): elfutils-devel-static-0.137-3.el5.x86_64.rpm                                                                                                                                                                               | 119 kB     00:00
(16/54): nspr-4.8.4-1.el5_4.i386.rpm                                                                                                                                                                                                | 120 kB     00:00
(17/54): libsepol-1.15.2-3.el5.i386.rpm                                                                                                                                                                                             | 128 kB     00:00
(18/54): libsepol-1.15.2-3.el5.x86_64.rpm                                                                                                                                                                                           | 131 kB     00:00
(19/54): libselinux-devel-1.33.4-5.5.el5.x86_64.rpm                                                                                                                                                                                 | 149 kB     00:00
(20/54): m4-1.4.5-3.el5.1.x86_64.rpm                                                                                                                                                                                                | 171 kB     00:00
(21/54): elfutils-libs-0.137-3.el5.x86_64.rpm                                                                                                                                                                                       | 183 kB     00:00
(22/54): libsepol-devel-1.15.2-3.el5.x86_64.rpm                                                                                                                                                                                     | 192 kB     00:00
(23/54): nss-devel-3.12.6-2.el5.centos.x86_64.rpm                                                                                                                                                                                   | 233 kB     00:00
(24/54): sqlite-devel-3.3.6-5.x86_64.rpm                                                                                                                                                                                            | 257 kB     00:00
(25/54): imake-1.0.2-3.x86_64.rpm                                                                                                                                                                                                   | 319 kB     00:00
(26/54): make-3.81-3.el5.x86_64.rpm                                                                                                                                                                                                 | 470 kB     00:00
(27/54): automake-1.9.6-2.3.el5.noarch.rpm                                                                                                                                                                                          | 476 kB     00:00
(28/54): glibc-headers-2.5-49.el5_5.4.x86_64.rpm                                                                                                                                                                                    | 592 kB     00:00
(29/54): e2fsprogs-devel-1.39-23.el5.x86_64.rpm                                                                                                                                                                                     | 632 kB     00:00
(30/54): autoconf-2.59-12.noarch.rpm                                                                                                                                                                                                | 647 kB     00:01
(31/54): krb5-libs-1.6.1-36.el5_5.5.i386.rpm                                                                                                                                                                                        | 662 kB     00:00
(32/54): libtool-1.5.22-7.el5_4.x86_64.rpm                                                                                                                                                                                          | 667 kB     00:01
(33/54): krb5-libs-1.6.1-36.el5_5.5.x86_64.rpm                                                                                                                                                                                      | 675 kB     00:00
(34/54): nss-3.12.6-2.el5.centos.i386.rpm                                                                                                                                                                                           | 1.1 MB     00:00
(35/54): kernel-headers-2.6.18-194.8.1.el5.x86_64.rpm                                                                                                                                                                               | 1.1 MB     00:00
(36/54): nss-3.12.6-2.el5.centos.x86_64.rpm                                                                                                                                                                                         | 1.1 MB     00:00
(37/54): ksh-20100202-1.el5.x86_64.rpm                                                                                                                                                                                              | 1.2 MB     00:04
(38/54): net-snmp-libs-5.3.2.2-9.el5_5.1.i386.rpm                                                                                                                                                                                   | 1.3 MB     00:00
(39/54): rpm-devel-4.4.2.3-18.el5.x86_64.rpm                                                                                                                                                                                        | 1.3 MB     00:01
(40/54): openssl-0.9.8e-12.el5_4.6.i686.rpm                                                                                                                                                                                         | 1.4 MB     00:01
(41/54): openssl-0.9.8e-12.el5_4.6.x86_64.rpm                                                                                                                                                                                       | 1.4 MB     00:01
(42/54): openssl-devel-0.9.8e-12.el5_4.6.x86_64.rpm                                                                                                                                                                                 | 1.9 MB     00:02
(43/54): krb5-devel-1.6.1-36.el5_5.5.x86_64.rpm                                                                                                                                                                                     | 1.9 MB     00:00
(44/54): openssl-devel-0.9.8e-12.el5_4.6.i386.rpm                                                                                                                                                                                   | 1.9 MB     00:02
(45/54): net-snmp-devel-5.3.2.2-9.el5_5.1.i386.rpm                                                                                                                                                                                  | 1.9 MB     00:00
(46/54): net-snmp-devel-5.3.2.2-9.el5_5.1.x86_64.rpm                                                                                                                                                                                | 2.0 MB     00:00
(47/54): glibc-devel-2.5-49.el5_5.4.x86_64.rpm                                                                                                                                                                                      | 2.4 MB     00:00
(48/54): mysql-devel-5.0.77-4.el5_5.3.i386.rpm                                                                                                                                                                                      | 2.4 MB     00:00
(49/54): mysql-devel-5.0.77-4.el5_5.3.x86_64.rpm                                                                                                                                                                                    | 2.5 MB     00:00
(50/54): cpp-4.1.2-48.el5.x86_64.rpm                                                                                                                                                                                                | 2.9 MB     00:03
(51/54): glibc-2.5-49.el5_5.4.x86_64.rpm                                                                                                                                                                                            | 4.7 MB     00:00
(52/54): gcc-4.1.2-48.el5.x86_64.rpm                                                                                                                                                                                                | 5.3 MB     00:08
(53/54): glibc-2.5-49.el5_5.4.i686.rpm                                                                                                                                                                                              | 5.3 MB     00:00
(54/54): glibc-common-2.5-49.el5_5.4.x86_64.rpm                                                                                                                                                                                     |  16 MB     00:02
———————————————————————————————————————————————————————————————————————————————————–
Total                                                                                                                                                                                                                      1.8 MB/s |  69 MB     00:39
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Updating       : libgcc                                                                                                                                                                                                                             1/69
Updating       : glibc-common                                                                                                                                                                                                                       2/69
Installing     : lm_sensors-devel                                                                                                                                                                                                                   3/69
Installing     : zlib-devel                                                                                                                                                                                                                         4/69
Installing     : e2fsprogs-devel                                                                                                                                                                                                                    5/69
Installing     : sqlite-devel                                                                                                                                                                                                                       6/69
Installing     : kernel-headers                                                                                                                                                                                                                     7/69
Installing     : keyutils-libs-devel                                                                                                                                                                                                                8/69
Updating       : libgcc                                                                                                                                                                                                                             9/69
Updating       : glibc                                                                                                                                                                                                                             10/69
Updating       : glibc                                                                                                                                                                                                                             11/69
Updating       : nspr                                                                                                                                                                                                                              12/69
Updating       : krb5-libs                                                                                                                                                                                                                         13/69
Updating       : openssl                                                                                                                                                                                                                           14/69
Updating       : nss                                                                                                                                                                                                                               15/69
Installing     : beecrypt                                                                                                                                                                                                                          16/69
Installing     : elfutils-libs                                                                                                                                                                                                                     17/69
Installing     : libgomp                                                                                                                                                                                                                           18/69
Installing     : pkgconfig                                                                                                                                                                                                                         19/69
Installing     : m4                                                                                                                                                                                                                                20/69
Updating       : libsepol                                                                                                                                                                                                                          21/69
Installing     : cpp                                                                                                                                                                                                                               22/69
Installing     : imake                                                                                                                                                                                                                             23/69
Installing     : make                                                                                                                                                                                                                              24/69
Installing     : ksh                                                                                                                                                                                                                               25/69
Updating       : krb5-libs                                                                                                                                                                                                                         26/69
Updating       : openssl                                                                                                                                                                                                                           27/69
Updating       : nspr                                                                                                                                                                                                                              28/69
Updating       : nss                                                                                                                                                                                                                               29/69
Installing     : net-snmp-libs                                                                                                                                                                                                                     30/69
Updating       : libsepol                                                                                                                                                                                                                          31/69
Installing     : autoconf                                                                                                                                                                                                                          32/69
Installing     : beecrypt-devel                                                                                                                                                                                                                    33/69
Installing     : automake                                                                                                                                                                                                                          34/69
Installing     : libsepol-devel                                                                                                                                                                                                                    35/69
Installing     : libselinux-devel                                                                                                                                                                                                                  36/69
Installing     : krb5-devel                                                                                                                                                                                                                        37/69
Installing     : openssl-devel                                                                                                                                                                                                                     38/69
Installing     : nspr-devel                                                                                                                                                                                                                        39/69
Installing     : nss-devel                                                                                                                                                                                                                         40/69
Installing     : glibc-headers                                                                                                                                                                                                                     41/69
Installing     : glibc-devel                                                                                                                                                                                                                       42/69
Installing     : mysql-devel                                                                                                                                                                                                                       43/69
Installing     : mysql-devel                                                                                                                                                                                                                       44/69
Installing     : openssl-devel                                                                                                                                                                                                                     45/69
Installing     : libtool                                                                                                                                                                                                                           46/69
Installing     : gcc                                                                                                                                                                                                                               47/69
Installing     : elfutils-libelf-devel                                                                                                                                                                                                             48/69
Installing     : rpm-devel                                                                                                                                                                                                                         49/69
Installing     : elfutils-libelf-devel-static                                                                                                                                                                                                      50/69
Installing     : elfutils-devel                                                                                                                                                                                                                    51/69
Installing     : net-snmp-devel                                                                                                                                                                                                                    52/69
Installing     : net-snmp-devel                                                                                                                                                                                                                    53/69
Installing     : elfutils-devel-static                                                                                                                                                                                                             54/69
Cleanup        : nspr                                                                                                                                                                                                                              55/69
Cleanup        : glibc-common                                                                                                                                                                                                                      56/69
Cleanup        : openssl                                                                                                                                                                                                                           57/69
Cleanup        : krb5-libs                                                                                                                                                                                                                         58/69
Cleanup        : libgcc                                                                                                                                                                                                                            59/69
Cleanup        : nss                                                                                                                                                                                                                               60/69
Cleanup        : libsepol                                                                                                                                                                                                                          61/69
Cleanup        : glibc                                                                                                                                                                                                                             62/69
Cleanup        : nspr                                                                                                                                                                                                                              63/69
Cleanup        : libsepol                                                                                                                                                                                                                          64/69
Cleanup        : openssl                                                                                                                                                                                                                           65/69
Cleanup        : nss                                                                                                                                                                                                                               66/69
Cleanup        : glibc                                                                                                                                                                                                                             67/69
Cleanup        : krb5-libs                                                                                                                                                                                                                         68/69
Cleanup        : libgcc                                                                                                                                                                                                                            69/69

Installed:
autoconf.noarch 0:2.59-12             automake.noarch 0:1.9.6-2.3.el5         gcc.x86_64 0:4.1.2-48.el5                 ksh.x86_64 0:20100202-1.el5                 libtool.x86_64 0:1.5.22-7.el5_4          make.x86_64 1:3.81-3.el5
mysql-devel.i386 0:5.0.77-4.el5_5.3   mysql-devel.x86_64 0:5.0.77-4.el5_5.3   net-snmp-devel.i386 1:5.3.2.2-9.el5_5.1   net-snmp-devel.x86_64 1:5.3.2.2-9.el5_5.1   openssl-devel.i386 0:0.9.8e-12.el5_4.6   openssl-devel.x86_64 0:0.9.8e-12.el5_4.6

Dependency Installed:
beecrypt.x86_64 0:4.1.2-10.1.1                    beecrypt-devel.x86_64 0:4.1.2-10.1.1              cpp.x86_64 0:4.1.2-48.el5                                e2fsprogs-devel.x86_64 0:1.39-23.el5          elfutils-devel.x86_64 0:0.137-3.el5
elfutils-devel-static.x86_64 0:0.137-3.el5        elfutils-libelf-devel.x86_64 0:0.137-3.el5        elfutils-libelf-devel-static.x86_64 0:0.137-3.el5        elfutils-libs.x86_64 0:0.137-3.el5            glibc-devel.x86_64 0:2.5-49.el5_5.4
glibc-headers.x86_64 0:2.5-49.el5_5.4             imake.x86_64 0:1.0.2-3                            kernel-headers.x86_64 0:2.6.18-194.8.1.el5               keyutils-libs-devel.x86_64 0:1.2-1.el5        krb5-devel.x86_64 0:1.6.1-36.el5_5.5
libgomp.x86_64 0:4.4.0-6.el5                      libselinux-devel.x86_64 0:1.33.4-5.5.el5          libsepol-devel.x86_64 0:1.15.2-3.el5                     lm_sensors-devel.x86_64 0:2.10.7-9.el5        m4.x86_64 0:1.4.5-3.el5.1
net-snmp-libs.i386 1:5.3.2.2-9.el5_5.1            nspr-devel.x86_64 0:4.8.4-1.el5_4                 nss-devel.x86_64 0:3.12.6-2.el5.centos                   pkgconfig.x86_64 1:0.21-2.el5                 rpm-devel.x86_64 0:4.4.2.3-18.el5
sqlite-devel.x86_64 0:3.3.6-5                     zlib-devel.x86_64 0:1.2.3-3

Dependency Updated:
glibc.i686 0:2.5-49.el5_5.4         glibc.x86_64 0:2.5-49.el5_5.4   glibc-common.x86_64 0:2.5-49.el5_5.4  krb5-libs.i386 0:1.6.1-36.el5_5.5  krb5-libs.x86_64 0:1.6.1-36.el5_5.5  libgcc.i386 0:4.1.2-48.el5        libgcc.x86_64 0:4.1.2-48.el5
libsepol.i386 0:1.15.2-3.el5        libsepol.x86_64 0:1.15.2-3.el5  nspr.i386 0:4.8.4-1.el5_4             nspr.x86_64 0:4.8.4-1.el5_4        nss.i386 0:3.12.6-2.el5.centos       nss.x86_64 0:3.12.6-2.el5.centos  openssl.i686 0:0.9.8e-12.el5_4.6
openssl.x86_64 0:0.9.8e-12.el5_4.6

Complete!
[root@testme html]# cd
[root@testme ~]# wget http://www.cacti.net/downloads/spine/cacti-spine-0.8.7g.tar.gz
–15:36:03–  http://www.cacti.net/downloads/spine/cacti-spine-0.8.7g.tar.gz
Resolving www.cacti.net… 140.211.167.231, 209.242.232.5
Connecting to www.cacti.net|140.211.167.231|:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 592801 (579K) [application/x-gzip]
Saving to: `cacti-spine-0.8.7g.tar.gz’

100%[==================================================================================================================================================================================================================>] 592,801      462K/s   in 1.3s

15:36:05 (462 KB/s) – `cacti-spine-0.8.7g.tar.gz’ saved [592801/592801]

[root@testme ~]# tar -xvzf cacti-spine-0.8.7g.tar.gz
cacti-spine-0.8.7g/
cacti-spine-0.8.7g/configure.ac
cacti-spine-0.8.7g/keywords.c
cacti-spine-0.8.7g/ChangeLog
cacti-spine-0.8.7g/snmp.c
cacti-spine-0.8.7g/package
cacti-spine-0.8.7g/Makefile.am
cacti-spine-0.8.7g/INSTALL
cacti-spine-0.8.7g/README-WINDOWS
cacti-spine-0.8.7g/configure
cacti-spine-0.8.7g/util.h
cacti-spine-0.8.7g/COPYING
cacti-spine-0.8.7g/locks.c
cacti-spine-0.8.7g/spine.h
cacti-spine-0.8.7g/ping.c
cacti-spine-0.8.7g/ping.h
cacti-spine-0.8.7g/README
cacti-spine-0.8.7g/nft_popen.h
cacti-spine-0.8.7g/Makefile.in
cacti-spine-0.8.7g/poller.h
cacti-spine-0.8.7g/sql.c
cacti-spine-0.8.7g/NEWS
cacti-spine-0.8.7g/php.h
cacti-spine-0.8.7g/autom4te.cache/
cacti-spine-0.8.7g/autom4te.cache/requests
cacti-spine-0.8.7g/autom4te.cache/traces.1
cacti-spine-0.8.7g/autom4te.cache/output.1
cacti-spine-0.8.7g/autom4te.cache/output.0
cacti-spine-0.8.7g/autom4te.cache/traces.0
cacti-spine-0.8.7g/LICENSE.LGPL
cacti-spine-0.8.7g/LICENSE
cacti-spine-0.8.7g/aclocal.m4
cacti-spine-0.8.7g/bootstrap
cacti-spine-0.8.7g/error.h
cacti-spine-0.8.7g/keywords.h
cacti-spine-0.8.7g/snmp.h
cacti-spine-0.8.7g/error.c
cacti-spine-0.8.7g/config/
cacti-spine-0.8.7g/config/ltmain.sh
cacti-spine-0.8.7g/config/config.sub
cacti-spine-0.8.7g/config/config.guess
cacti-spine-0.8.7g/config/missing
cacti-spine-0.8.7g/config/config.h.in
cacti-spine-0.8.7g/config/depcomp
cacti-spine-0.8.7g/config/install-sh
cacti-spine-0.8.7g/spine.c
cacti-spine-0.8.7g/common.h
cacti-spine-0.8.7g/AUTHORS
cacti-spine-0.8.7g/util.c
cacti-spine-0.8.7g/nft_popen.c
cacti-spine-0.8.7g/poller.c
cacti-spine-0.8.7g/sql.h
cacti-spine-0.8.7g/spine.conf.dist
cacti-spine-0.8.7g/locks.h
cacti-spine-0.8.7g/php.c
[root@testme ~]# cd cacti-spine-0.8.7g
[root@testme cacti-spine-0.8.7g]# autoreconf -fvi
autoreconf: Entering directory `.’
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal –force
autoreconf: configure.ac: tracing
autoreconf: running: libtoolize –copy –force
Using `AC_PROG_RANLIB’ is rendered obsolete by `AC_PROG_LIBTOOL’
Putting files in AC_CONFIG_AUX_DIR, `config’.
autoreconf: running: /usr/bin/autoconf –force
autoreconf: running: /usr/bin/autoheader –force
autoreconf: running: automake –add-missing –copy –force-missing
autoreconf: Leaving directory `.’
[root@testme cacti-spine-0.8.7g]# make
make: *** No targets specified and no makefile found.  Stop.
[root@testme cacti-spine-0.8.7g]# ./configure
checking build system type… x86_64-unknown-linux-gnu
checking host system type… x86_64-unknown-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for gawk… (cached) gawk
checking for gcc… gcc
checking for C compiler default output file name… a.out
checking whether the C compiler works… yes
checking whether we are cross compiling… no
checking for suffix of executables…
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ANSI C… none needed
checking for style of include used by make… GNU
checking dependency style of gcc… gcc3
checking how to run the C preprocessor… gcc -E
checking for a BSD-compatible install… /usr/bin/install -c
checking whether ln -s works… yes
checking for a sed that does not truncate output… /bin/sed
checking for egrep… grep -E
checking for ld used by gcc… /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld… yes
checking for /usr/bin/ld option to reload object files… -r
checking for BSD-compatible nm… /usr/bin/nm -B
checking how to recognise dependent libraries… pass_all
checking for ANSI C header files… yes
checking for sys/types.h… yes
checking for sys/stat.h… yes
checking for stdlib.h… yes
checking for string.h… yes
checking for memory.h… yes
checking for strings.h… yes
checking for inttypes.h… yes
checking for stdint.h… yes
checking for unistd.h… yes
checking dlfcn.h usability… yes
checking dlfcn.h presence… yes
checking for dlfcn.h… yes
checking for g++… no
checking for c++… no
checking for gpp… no
checking for aCC… no
checking for CC… no
checking for cxx… no
checking for cc++… no
checking for cl… no
checking for FCC… no
checking for KCC… no
checking for RCC… no
checking for xlC_r… no
checking for xlC… no
checking whether we are using the GNU C++ compiler… no
checking whether g++ accepts -g… no
checking dependency style of g++… none
checking for g77… no
checking for f77… no
checking for xlf… no
checking for frt… no
checking for pgf77… no
checking for fort77… no
checking for fl32… no
checking for af77… no
checking for f90… no
checking for xlf90… no
checking for pgf90… no
checking for epcf90… no
checking for f95… no
checking for fort… no
checking for xlf95… no
checking for ifc… no
checking for efc… no
checking for pgf95… no
checking for lf95… no
checking for gfortran… no
checking whether we are using the GNU Fortran 77 compiler… no
checking whether  accepts -g… no
checking the maximum length of command line arguments… 32768
checking command to parse /usr/bin/nm -B output from gcc object… ok
checking for objdir… .libs
checking for ar… ar
checking for ranlib… ranlib
checking for strip… strip
checking if gcc supports -fno-rtti -fno-exceptions… no
checking for gcc option to produce PIC… -fPIC
checking if gcc PIC flag -fPIC works… yes
checking if gcc static flag -static works… yes
checking if gcc supports -c -o file.o… yes
checking whether the gcc linker (/usr/bin/ld -m elf_x86_64) supports shared libraries… yes
checking whether -lc should be explicitly linked in… no
checking dynamic linker characteristics… GNU/Linux ld.so
checking how to hardcode library paths into programs… immediate
checking whether stripping libraries is possible… yes
checking if libtool supports shared libraries… yes
checking whether to build shared libraries… yes
checking whether to build static libraries… yes
configure: creating libtool
appending configuration tag “CXX” to libtool
appending configuration tag “F77″ to libtool
checking for ranlib… (cached) ranlib
checking whether to enable -Wall… no
checking for threadsafe gethostbyname()… no
checking for gethostbyname_r in -lnls… no
checking for socket in -lsocket… no
checking for floor in -lm… yes
checking for pthread_exit in -lpthread… yes
checking for deflate in -lz… yes
checking for kstat_close in -lkstat… no
checking for CRYPTO_realloc in -lcrypto… yes
checking for ANSI C header files… (cached) yes
checking sys/socket.h usability… yes
checking sys/socket.h presence… yes
checking for sys/socket.h… yes
checking sys/select.h usability… yes
checking sys/select.h presence… yes
checking for sys/select.h… yes
checking sys/wait.h usability… yes
checking sys/wait.h presence… yes
checking for sys/wait.h… yes
checking sys/time.h usability… yes
checking sys/time.h presence… yes
checking for sys/time.h… yes
checking assert.h usability… yes
checking assert.h presence… yes
checking for assert.h… yes
checking ctype.h usability… yes
checking ctype.h presence… yes
checking for ctype.h… yes
checking errno.h usability… yes
checking errno.h presence… yes
checking for errno.h… yes
checking signal.h usability… yes
checking signal.h presence… yes
checking for signal.h… yes
checking math.h usability… yes
checking math.h presence… yes
checking for math.h… yes
checking malloc.h usability… yes
checking malloc.h presence… yes
checking for malloc.h… yes
checking netdb.h usability… yes
checking netdb.h presence… yes
checking for netdb.h… yes
checking for signal.h… (cached) yes
checking stdarg.h usability… yes
checking stdarg.h presence… yes
checking for stdarg.h… yes
checking stdio.h usability… yes
checking stdio.h presence… yes
checking for stdio.h… yes
checking syslog.h usability… yes
checking syslog.h presence… yes
checking for syslog.h… yes
checking for netinet/in_systm.h… yes
checking for netinet/in.h… yes
checking for netinet/ip.h… yes
checking for netinet/ip_icmp.h… yes
checking for unsigned long long… yes
checking for long long… yes
checking for an ANSI C-conforming const… yes
checking for size_t… yes
checking whether time.h and sys/time.h may both be included… yes
checking whether struct tm is in sys/time.h or time.h… time.h
checking return type of signal handlers… void
checking for malloc… yes
checking for calloc… yes
checking for gettimeofday… yes
checking for strerror… yes
checking for strtoll… yes
checking priv.h usability… no
checking priv.h presence… no
checking for priv.h… no
checking whether we are using Solaris privileges… no
checking for mysql_init in -lmysqlclient_r… yes
checking for mysql_thread_init in -lmysqlclient_r… yes
checking if UCD-SNMP needs crypto support… no
checking if Net-SNMP needs crypto support… yes
checking for snmp_timeout in -lnetsnmp… yes
checking for the spine results buffer size… 1024 bytes
checking for the maximum simultaneous spine scripts… 20
checking for the maximum MySQL buffer size… 65536
checking whether we are using traditional popen… no
checking whether to verify net-snmp library vs header versions… no
checking for glibc gethostbyname_r… yes
checking for Solaris/Irix gethostbyname_r… no
checking for HP-UX gethostbyname_r… no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config/config.h
config.status: executing depfiles commands
[root@testme cacti-spine-0.8.7g]# make
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT sql.o -MD -MP -MF “.deps/sql.Tpo” -c -o sql.o sql.c;
then mv -f “.deps/sql.Tpo” “.deps/sql.Po”; else rm -f “.deps/sql.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT spine.o -MD -MP -MF “.deps/spine.Tpo” -c -o spine.o spine.c;
then mv -f “.deps/spine.Tpo” “.deps/spine.Po”; else rm -f “.deps/spine.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT util.o -MD -MP -MF “.deps/util.Tpo” -c -o util.o util.c;
then mv -f “.deps/util.Tpo” “.deps/util.Po”; else rm -f “.deps/util.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT snmp.o -MD -MP -MF “.deps/snmp.Tpo” -c -o snmp.o snmp.c;
then mv -f “.deps/snmp.Tpo” “.deps/snmp.Po”; else rm -f “.deps/snmp.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT locks.o -MD -MP -MF “.deps/locks.Tpo” -c -o locks.o locks.c;
then mv -f “.deps/locks.Tpo” “.deps/locks.Po”; else rm -f “.deps/locks.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT poller.o -MD -MP -MF “.deps/poller.Tpo” -c -o poller.o poller.c;
then mv -f “.deps/poller.Tpo” “.deps/poller.Po”; else rm -f “.deps/poller.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT nft_popen.o -MD -MP -MF “.deps/nft_popen.Tpo” -c -o nft_popen.o nft_popen.c;
then mv -f “.deps/nft_popen.Tpo” “.deps/nft_popen.Po”; else rm -f “.deps/nft_popen.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT php.o -MD -MP -MF “.deps/php.Tpo” -c -o php.o php.c;
then mv -f “.deps/php.Tpo” “.deps/php.Po”; else rm -f “.deps/php.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT ping.o -MD -MP -MF “.deps/ping.Tpo” -c -o ping.o ping.c;
then mv -f “.deps/ping.Tpo” “.deps/ping.Po”; else rm -f “.deps/ping.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT keywords.o -MD -MP -MF “.deps/keywords.Tpo” -c -o keywords.o keywords.c;
then mv -f “.deps/keywords.Tpo” “.deps/keywords.Po”; else rm -f “.deps/keywords.Tpo”; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I./config     -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -MT error.o -MD -MP -MF “.deps/error.Tpo” -c -o error.o error.c;
then mv -f “.deps/error.Tpo” “.deps/error.Po”; else rm -f “.deps/error.Tpo”; exit 1; fi
/bin/sh ./libtool –tag=CC –mode=link gcc  -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2  -L/usr/lib64 -L/usr/lib64/mysql  -o spine  sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o  -lnetsnmp -lmysqlclient_r -lmysqlclient_r -lcrypto -lz -lpthread -lm
mkdir .libs
gcc -I/usr/include/net-snmp -I/usr/include/net-snmp/.. -I/usr/include/mysql -g -O2 -o spine sql.o spine.o util.o snmp.o locks.o poller.o nft_popen.o php.o ping.o keywords.o error.o  -L/usr/lib64 -L/usr/lib64/mysql -lnetsnmp -lmysqlclient_r -lcrypto -lz -lpthread -lm
[root@testme cacti-spine-0.8.7g]# make install
make[1]: Entering directory `/root/cacti-spine-0.8.7g’
test -z “/usr/local/spine/bin” || mkdir -p — “/usr/local/spine/bin”
/bin/sh ./libtool –mode=install /usr/bin/install -c ‘spine’ ‘/usr/local/spine/bin/spine’
/usr/bin/install -c spine /usr/local/spine/bin/spine
test -z “/usr/local/spine/etc” || mkdir -p — “/usr/local/spine/etc”
/usr/bin/install -c -m 644 ‘spine.conf.dist’ ‘/usr/local/spine/etc/spine.conf.dist’
make[1]: Leaving directory `/root/cacti-spine-0.8.7g’
[root@testme cacti-spine-0.8.7g]# cp /usr/local/spine/etc/spine.conf.dist /etc/spine.conf
[root@testme cacti-spine-0.8.7g]# vi /etc/spine.conf
[root@testme cacti-spine-0.8.7g]# stat /usr/local/spine/bin/spine
File: `/usr/local/spine/bin/spine’
Size: 247573        Blocks: 496        IO Block: 4096   regular file
Device: ca01h/51713d    Inode: 65634       Links: 1
Access: (0755/-rwxr-xr-x)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2010-08-10 17:01:16.000000000 +0000
Modify: 2010-08-10 17:01:16.000000000 +0000
Change: 2010-08-10 17:01:16.000000000 +0000
[root@testme cacti-spine-0.8.7g]# cat /etc/spine.conf
# +————————————————————————-+
# | Copyright (C) 2005-2010 The Cacti Group                                 |
# |                                                                         |
# | This program is free software; you can redistribute it and/or           |
# | modify it under the terms of the GNU Lesser General Public License      |
# | as published by the Free Software Foundation; either version 2.1        |
# | of the License, or (at your option) any later version.                  |
# |                                                                         |
# | This program is distributed in the hope that it will be useful,         |
# | but WITHOUT ANY WARRANTY; without even the implied warranty of          |
# | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the           |
# | GNU General Public License for more details.                            |
# +————————————————————————-+
# | spine: a backend data gatherer for Cacti                                |
# +————————————————————————-+
# | This poller would not have been possible without:                       |
# |   – Larry Adams (current development and enhancements)                  |
# |   – Rivo Nurges (rrd support, mysql poller cache, misc functions)       |
# |   – RTG (core poller code, pthreads, snmp, autoconf examples)           |
# |   – Brady Alleman/Doug Warner (threading ideas, implimentation details) |
# +————————————————————————-+
# | Settings                                                                |
# +————————————————————————-+
# | DB_Host         ‘localhost’ or socket file for UNIX/Linux               |
# |                 IP Address for Windows                                  |
# | DB_Database     Database name, typically ‘cacti’                        |
# | DB_Port         The database port to use                                |
# | DB_User         The user to access the database, typically ‘cactiuser’  |
# | DB_Pass         The password for the Cacti user                         |
# | SNMP_Clientaddr Bind SNMP to a specific address for sites that use      |
# |                 higher security levels                                  |
# | DB_PreG         Set to 1 if you wish to work with older versions of     |
# |                 cacti 0.8.7.                                            |
# +————————————————————————-+
DB_Host         127.0.0.1
DB_Database     cacti
DB_User         cacti
DB_Pass         password
DB_Port         3306
DB_PreG         0

  1. Mind posting the output from a cat of your spine.conf file? I’m having an issue with DB_Password being unrecognized. Also, I *LOVE* the straight forward-no-frills ‘this is how you do it’ posts you have.

    • Bill, thanks for the props! I have updated the article with a complete raw output of a spine installation in case that is useful. I have also included below the spine.conf and a manual way of testing the spine binary.

      [root@testme cacti-spine-0.8.7g]# cat /etc/spine.conf
      # +————————————————————————-+
      # | Copyright (C) 2005-2010 The Cacti Group |
      # | |
      # | This program is free software; you can redistribute it and/or |
      # | modify it under the terms of the GNU Lesser General Public License |
      # | as published by the Free Software Foundation; either version 2.1 |
      # | of the License, or (at your option) any later version. |
      # | |
      # | This program is distributed in the hope that it will be useful, |
      # | but WITHOUT ANY WARRANTY; without even the implied warranty of |
      # | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
      # | GNU General Public License for more details. |
      # +————————————————————————-+
      # | spine: a backend data gatherer for Cacti |
      # +————————————————————————-+
      # | This poller would not have been possible without: |
      # | – Larry Adams (current development and enhancements) |
      # | – Rivo Nurges (rrd support, mysql poller cache, misc functions) |
      # | – RTG (core poller code, pthreads, snmp, autoconf examples) |
      # | – Brady Alleman/Doug Warner (threading ideas, implimentation details) |
      # +————————————————————————-+
      # | Settings |
      # +————————————————————————-+
      # | DB_Host ‘localhost’ or socket file for UNIX/Linux |
      # | IP Address for Windows |
      # | DB_Database Database name, typically ‘cacti’ |
      # | DB_Port The database port to use |
      # | DB_User The user to access the database, typically ‘cactiuser’ |
      # | DB_Pass The password for the Cacti user |
      # | SNMP_Clientaddr Bind SNMP to a specific address for sites that use |
      # | higher security levels |
      # | DB_PreG Set to 1 if you wish to work with older versions of |
      # | cacti 0.8.7. |
      # +————————————————————————-+
      DB_Host 127.0.0.1
      DB_Database cacti
      DB_User cacti
      DB_Pass password
      DB_Port 3306
      DB_PreG 0
      [root@testme cacti-spine-0.8.7g]# /usr/local/spine/bin/spine –conf=/etc/spine.conf –verbosity=3
      SPINE: Using spine config file [/etc/spine.conf]
      SPINE: Version 0.8.7g starting
      08/10/2010 05:12:14 PM – SPINE: Poller[0] NOTE: Spine did not detect multithreaded device polling.
      08/10/2010 05:12:14 PM – SPINE: Poller[0] NOTE: Spine is behaving in a 0.8.7g manner
      08/10/2010 05:12:14 PM – SPINE: Poller[0] Host[1] TH[1] NOTE: There are ’5′ Polling Items for this Host
      08/10/2010 05:12:14 PM – SPINE: Poller[0] Host[1] TH[1] DS[3] SCRIPT: perl /var/www/html/cacti-0.8.7g/scripts/linux_memory.pl MemFree:, output: 24312
      08/10/2010 05:12:14 PM – SPINE: Poller[0] Host[1] TH[1] DS[4] SCRIPT: perl /var/www/html/cacti-0.8.7g/scripts/linux_memory.pl SwapFree:, output: 497208
      08/10/2010 05:12:14 PM – SPINE: Poller[0] Host[1] TH[1] DS[5] SCRIPT: perl /var/www/html/cacti-0.8.7g/scripts/loadavg_multi.pl, output: 1min:0.05 5min:0.04 10min:0.01
      08/10/2010 05:12:14 PM – SPINE: Poller[0] Host[1] TH[1] DS[6] SCRIPT: perl /var/www/html/cacti-0.8.7g/scripts/unix_users.pl , output: 1
      08/10/2010 05:12:14 PM – SPINE: Poller[0] Host[1] TH[1] DS[7] SCRIPT: perl /var/www/html/cacti-0.8.7g/scripts/unix_processes.pl, output: 67
      08/10/2010 05:12:14 PM – SPINE: Poller[0] Time: 0.1568 s, Threads: 1, Hosts: 2

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>