|
|
| Author |
Message |
geekman
Joined: 22 Sep 2006 Posts: 16 Location: Helena MT
|
Posted: Thu Sep 20, 2007 11:52 am Post subject: Problems with spine |
|
|
I have upgraded my test server to the latest spine this morning. When I use spine as the poller it seems to lock up causing it to run over the time limit and not updating any RRDs.
server is Xubuntu 7.10 (i know its not the stable release but i havn't had any problems with it.)
P3 600mhz
256mb ram
10gb hdd
CMD.PHP works just fine. finished is about 40 seconds or so.
09/20/2007 10:50:39 AM - SYSTEM STATS: Time:36.8077 Method:cmd.php Processes:1 Threads:N/A Hosts:44 HostsPerProcess:44 DataSources:576 RRDsProcessed:318
I know the machine is slow, but cactid worked fine.
any ideas? |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5441 Location: Wisconsin, USA
|
Posted: Thu Sep 20, 2007 11:54 am Post subject: |
|
|
Spine is only designed to work with 0.8.7
It is not compatible with 0.8.6x |
|
| Back to top |
|
 |
geekman
Joined: 22 Sep 2006 Posts: 16 Location: Helena MT
|
Posted: Thu Sep 20, 2007 11:57 am Post subject: |
|
|
| sorry I forgot to mension this is also 8.7 beta 3 |
|
| Back to top |
|
 |
rony Developer/Forum Admin
Joined: 17 Nov 2003 Posts: 5441 Location: Wisconsin, USA
|
Posted: Thu Sep 20, 2007 12:01 pm Post subject: |
|
|
Did it compile correctly?
What version of NET-SNMP and OpenSSL do you have installed? |
|
| Back to top |
|
 |
geekman
Joined: 22 Sep 2006 Posts: 16 Location: Helena MT
|
Posted: Thu Sep 20, 2007 12:08 pm Post subject: |
|
|
Net-snmp version: 5.3.1
openssl version: 0.9.8e ( i think cant seem to find this one, this info is from "man openssl")
I didn't recieve any errors during compile. |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Thu Sep 20, 2007 2:20 pm Post subject: |
|
|
Set logging to debug and then, open a command prompt and run the following:
cd /usr/local/spine/bin
./spine
Post your output.
TheWitness |
|
| Back to top |
|
 |
geekman
Joined: 22 Sep 2006 Posts: 16 Location: Helena MT
|
Posted: Thu Sep 20, 2007 2:24 pm Post subject: |
|
|
mikek@mikek-desktop:/var/www/cacti$ ./spine
SPINE: Using spine config file [spine.conf]
09/20/2007 01:22:51 PM - SPINE: Poller[0]
09/20/2007 01:22:51 PM - SPINE: Poller[0]
09/20/2007 01:22:51 PM - SPINE: Poller[0] DEBUG: The path_php_server variable is /var/www/cacti/script_server.php
09/20/2007 01:22:51 PM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /var/www/cacti/log/cacti.log
09/20/2007 01:22:51 PM - SPINE: Poller[0]
09/20/2007 01:22:51 PM - SPINE: Poller[0] DEBUG: The log_destination variable is 1 (FILE)
Segmentation fault (core dumped)
My spine is in the cacti directory, if that matters?? |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Thu Sep 20, 2007 2:33 pm Post subject: |
|
|
Ok, that should be enough. Do you know how to generate a core file?
TheWitness |
|
| Back to top |
|
 |
geekman
Joined: 22 Sep 2006 Posts: 16 Location: Helena MT
|
Posted: Thu Sep 20, 2007 2:54 pm Post subject: |
|
|
ok I re-ran the ./spine again and now it is giving a different output
however I looked up making a core file on google, seems I would use gcore and specify a PID, the spine process does not seem to last long enough to grap the pid and run gcore
as for the different output its seems to be getting farther but the output is 700+ lines long (still only getting to about 15 of the hosts)
not getting the segment fault error any more as well
not sure what i changed
(no wait, i see)
first run i was running as a normal user in a folder only root has access to. running as sudo ./spine gives the long output.
any certain thing you want from the log file that i can post? |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Thu Sep 20, 2007 5:21 pm Post subject: |
|
|
Interesting. So, when the current user has no permissions, segmentation fault. Did it not have permissions to the spine.conf file?
Also, run in HIGH mode and post the output. That would be good.
TheWitness |
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Fri Sep 21, 2007 9:25 am Post subject: |
|
|
| I have corrected this in SVN. Thanks for the report. |
|
| Back to top |
|
 |
|