[SOLVED] Installing Spine 0.8.7a...

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

[SOLVED] Installing Spine 0.8.7a...

Post by capmax »

Hi everyone,

I'm new in the Cacti community : I'm testing Cacti 0.8.7 for a week now, running on Ubuntu 7.10 (maybe it's the cause of the problem...).

I would like to install Spine so I followed the instructions on that page :
http://cacti.net/spine_install_rhlnx.php

However, when I go to cacti-spine-0.8.7a, and try to do ./configure, I've got this :

Code: Select all

root@test:~/downloads/cacti-spine-0.8.7a# ./configure
configure: error: cannot run /bin/bash config/config.
I found a topic about the install of cactid with another procedure
http://forums.cacti.net/post-77267.html#77267
But when I try to do an automake, it doesn't work.

Code: Select all

root@test-desktop:~/downloads/cacti-spine-0.8.7a# automake
configure.ac:7: required file `config/config.sub' not found
configure.ac:7:   `automake --add-missing' can install `config.sub'
configure.ac:7: required file `config/config.guess' not found
configure.ac:7:   `automake --add-missing' can install `config.guess'
...even if these files are there !

So I'm stuck with this install of spine, which is not that simple I wish it would... An idea of what I could do ? is it linked with the fact I'm on Ubuntu ?
Last edited by capmax on Mon Jan 21, 2008 10:20 am, edited 3 times in total.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you try that :

Code: Select all

libtoolize --force
autoconf
autoheader
automake
./configure
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

Post by capmax »

Great ! The install worked ! Thanks a lot fmangeant : quelle maitrise ! :)
Just a few more manips to change the poller and it will be ok (the compilation was the hardest I think)...
I had to install some package (libtoolize, libmysqlclient, libsnmp)
I didn't know the command libtoolize --force ? What does it do ?
capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

Post by capmax »

Unfortunately, I wasn't able to make spine work on cacti...

Could you tell me where I am wrong :
- After the ./confgure successfully done, I edited the spine.conf to change the password of the cactiuser from mysql.
- In the cacti settings, 'Paths' tab : I entered in the field "Cactid Poller File Path" my path to spine.
- In the cacti settings, 'Poller' tab : I selected cactid instead of cmd.php
- It should work, shouldn't it ? :-?
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

After ./configure, you should run "make && make install".
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
Volund
Posts: 14
Joined: Thu Nov 08, 2007 5:16 am
Location: Lille / France

Post by Volund »

Hi,

Yes it should work after the make and make install.
Look in the System Utilities and select the Cacti log file, you'll see the result of the spine poller.


You can verify the version of your snmp librairies:
dpkg --get-selections | grep -i snmp

Download the last librairies of mysql and snmp :

sudo apt-get install libmysqlclient15-dev


sudo apt-get install libsnmp10-dev
Ubuntu 7 | Apache2.2 | Cacti 0.8.6j | RRDTool 1.25.15 | PHP 5.2.4 | MySQL 5.0.45 | Net-SNMP 5.4.13 | Cygwin 1.5 | Spine
capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

Post by capmax »

fmangeant >> I didn't do the make install, but it didn't change anything.
Volund >> Concerning the libraries, I already have these versions : libmysqlclient15-dev libsnmp10-dev.

And now, the cacti log file :

Code: Select all

 12/21/2007 02:35:29 PM - SYSTEM STATS: Time:26.1954 Method:cactid Processes:1 Threads:1 Hosts:3 HostsPerProcess:3 DataSources:22 RRDsProcessed:0
12/21/2007 02:35:28 PM - SPINE: Poller[0] ERROR: Spine Timed Out While Processing Hosts Internal 
I've got these 2 lines for every refresh, since I changed the poller to cactid (spine)

One more thing, when I try to launch ./spine, i've got this :

Code: Select all

root@test-desktop:/usr/local/spine/bin# ./spine
SPINE: Using spine config file [../etc/spine.conf]
SPINE: Version 0.8.7b starting
12/21/2007 02:35:28 PM - SPINE: Poller[0] ERROR: Spine Timed Out While Processing Hosts Internal
SPINE: Time: 294.0022 s, Threads: 1, Hosts: 3
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Which "Downed Host Detection" method are you using in Cacti ?

(Settings -> General -> Poller)
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

Post by capmax »

fmangeant wrote:Which "Downed Host Detection" method are you using in Cacti ?

(Settings -> General -> Poller)
SNMP
capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

Post by capmax »

I reinstall spine from the beggining, following a doc I found in the installation package of cacti (cacti-0.8.7a/docs/html/unix_configure_spine.html).
But same problem, when i want to launch spine, I've got that :

Code: Select all

root@test-desktop:/usr/local/cacti-spine-0.8.7a# ./spine
SPINE: Using spine config file [spine.conf]
SPINE: Version 0.8.7b starting
|
and nothing happen for a couple of minutes and I get :

Code: Select all

12/21/2007 04:51:36 PM - SPINE: Poller[0] ERROR: Spine Timed Out While Processing Hosts Internal
SPINE: Time: 294.0055 s, Threads: 1, Hosts: 3
Does Anyone have a solution, please ?
myfreeke
Cacti User
Posts: 82
Joined: Tue Dec 04, 2007 10:24 pm

Post by myfreeke »

I Spine 0.8.7a runing error:

[root@test bin]# ./spine
SPINE: Using spine config file [../etc/spine.conf]
SPINE: Version 0.8.7b starting
12/24/2007 05:00:49 PM - SPINE: Poller[0] ERROR: Spine Timed Out While Processing Hosts Internal
SPINE: Time: 4.0126 s, Threads: 1, Hosts: 45


why?
capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

Post by capmax »

I tried to disable some devices to monitor
I tried to change the "Downed Host Detection" and "Ping Type" of the poller
-> nothing changed, same message as before :

Code: Select all

root@test-desktop:/usr/local/spine/bin# ./spine
SPINE: Using spine config file [../etc/spine.conf]
SPINE: Version 0.8.7b starting
     ((and after a couple of minutes...))
12/26/2007 11:43:36 AM - SPINE: Poller[0] ERROR: Spine Timed Out While Processing Hosts Internal
SPINE: Time: 294.0055 s, Threads: 1, Hosts: 3
I'm stuck. :o Why is my spine refusing to process anything ?
capmax
Posts: 14
Joined: Tue Dec 18, 2007 6:07 am
Location: Lille, France

Post by capmax »

Help ! :cry:

cmd.php works fine and succeeds in retrieving all data sources.
But spine does nothing, just waiting 293sec and then stop !

Still didn't find out why...
User avatar
sizulku
Cacti User
Posts: 110
Joined: Mon Nov 04, 2002 9:15 am
Location: ACEH
Contact:

Post by sizulku »

replace ping.c from cacti-spine-0.8.7a with ping.c from cacti-spine-0.8.7. Its work for me even using icmp ping.
User avatar
Mark.
Cacti User
Posts: 74
Joined: Tue Jul 03, 2007 4:11 pm
Location: San Luis Obispo

Post by Mark. »

Whats the latest on this?
Cacti Ver: 0.8.7h
netSNMP 5.4.2.1
PHP 5.3.2-1ubuntu4.9 with Suhosin-Patch
mysql Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1
RRDtool 1.3.8
CCNA,CCDA,CCSE
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests