Spine error Segmentation Fault

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
nomanlan
Posts: 31
Joined: Sat Aug 25, 2007 12:20 pm
Location: Texas

Spine error Segmentation Fault

Post by nomanlan »

Spine keeps giving me the Segmentation Fault. I am running Cacti version 0.8.7d on Windows 2003 with Spine .8.7c. Any tips on how I could go about troubleshooting what the problem is with Spine?

====================================
C:\Spine>spine.exe -V=5
SPINE: Using spine config file [spine.conf]
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The path_php_server variable is c:/Inetpub/wwwroot/
cacti/script_server.php
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The path_cactilog variable is C:/Inetpub/wwwroot/ca
cti/log/cacti.log
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The log_destination variable is 1 (FILE)
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The path_php variable is C:/php/php.exe
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The availability_method variable is 2
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The ping_recovery_count variable is 3
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The ping_failure_count variable is 2
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The polling interval is 300 seconds
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The number of concurrent processes is 1
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The script timeout is 25
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The number of php script servers to run is 1
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: StartHost='-1', EndHost='-1', TotalPHPScripts='0'
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The PHP Script Server is Not Required
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The Maximum SNMP OID Get Size is 10
06/04/2009 12:16:37 AM - SPINE: Poller[0] Version 0.8.7c starting
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: MySQL is Thread Safe!
06/04/2009 12:16:37 AM - SPINE: Poller[0] SPINE: Initializing Net-SNMP API
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: In Poller, About to Start Polling of Host
06/04/2009 12:16:37 AM - SPINE: Poller[0] Host[2] SNMP Result: Host responded to SNMP
06/04/2009 12:16:37 AM - SPINE: Poller[0] Host[2] RECACHE: Processing 2 items in the auto reindex cache for 'localhost'
06/04/2009 12:16:37 AM - SPINE: Poller[0] Host[2] DEBUG: HOST COMPLETE: About to Exit Host Polling T
hread Function
06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: Valid Thread to be Created
\06/04/2009 12:16:37 AM - SPINE: Poller[0] DEBUG: The Value of Active Threads is 1
06/04/2009 12:16:37 AM - SPINE: Poller[0] Host[3] SNMP Result: Host responded to SNMP
06/04/2009 12:16:37 AM - SPINE: Poller[0] Host[3] RECACHE: Processing 1 items in the auto reindex ca
che for '10.23.39.254'
06/04/2009 12:16:37 AM - SPINE: Poller[0] FATAL: Spine Encountered a Segmentation Fault (Spine threa
d)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Try spine 0.8.7d in the announcement forum. If the issue still persists, post the segfault and file a bug: www.cacti.net/bugs.php.

No issues when using cmd.php?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Posting just to keep myself informed. Spine 0.8.7d is stable.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
nomanlan
Posts: 31
Joined: Sat Aug 25, 2007 12:20 pm
Location: Texas

Post by nomanlan »

Yes, that's correct, CMD.PHP ran smoothly without any problem. I will try .8.7d and post results.
nomanlan
Posts: 31
Joined: Sat Aug 25, 2007 12:20 pm
Location: Texas

Post by nomanlan »

Much better results using Spine 0.8.7d, no more segmentation fault! The only problem I ran into was my latency_ping.pl, spine errored out "06/04/2009 11:46:31 AM - SPINE: Poller[0] Host[3] ERROR: Empty result [34.23.39.254]: 'perl C:/Inetdub/wwwroot/cacti/scripts/ping-latency.pl 10.23.39.254''. Other than that snmp traffic in/out works just fine with spine 0.8.7d.

I had another test Cacti box running Spine 0.8.7c and using the same ping-latency.pl script, spine 0.8.7c executes this ping-latency.pl fine on this box.

============================================
06/04/2009 11:46:31 AM - SPINE: Poller[0] Host[3] RECACHE: Processing 1 items in the auto reindex cache for '10.23.39.254'
06/04/2009 11:46:31 AM - SPINE: Poller[0] Host[3] NOTE: There are '4' Polling Items for this Host
06/04/2009 11:46:31 AM - SPINE: Poller[0] Host[3] DEBUG: The POPEN returned the following File Descr
iptor 7
06/04/2009 11:46:31 AM - SPINE: Poller[0] Host[3] ERROR: Empty result [34.23.39.254]: 'perl C:/Inetp
ub/wwwroot/cacti/scripts/ping-latency.pl 10.23.39.254'
06/04/2009 11:46:31 AM - SPINE: Poller[0] Host[3] DS[12] SCRIPT: perl C:/Inetpub/wwwroot/cacti/scripts/ping-latency.pl 10.23.39.254, output: U
06/04/2009 11:46:31 AM - SPINE: Poller[0] Host[3] DS[8] SNMP: v2: 34.23.39.254, dsname: traffic_in,
oid: .1.3.6.1.2.1.2.2.1.10.17, value: 831759131
06/04/2009 11:46:31 AM - SPINE: Poller[0] Host[3] DS[8] SNMP: v2: 10.23.39.254, dsname: traffic_out,
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You need to specify the full path to perl. Clear the poller cache once you've done that.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

100% correct.
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
nomanlan
Posts: 31
Joined: Sat Aug 25, 2007 12:20 pm
Location: Texas

Post by nomanlan »

I changed my smokeping data input path from Perl to C:\Perl\Bin\Perl but still getting the same error. I cleared the poller cache as well

Here is my poller cache content

Script: C:\Perl\bin\Perl C:/Inetpub/wwwroot/cacti/scripts/ping-latency.pl 10.34.248.2
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Forward slashes please.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
nomanlan
Posts: 31
Joined: Sat Aug 25, 2007 12:20 pm
Location: Texas

Post by nomanlan »

It gave me same error using forward slashes. so weird! It got to be my perl environment but I can't figure out where the problem lies.

Cacti.log:
06/04/2009 04:20:01 PM - SPINE: Poller[0] Host[3] ERROR: Empty result [10.23.39.254]: 'C:/Perl/bin/Perl C:/Inetpub/wwwroot/cacti/scripts/ping-latency.pl 10.23.39.254'

Additional output when I ran spine -v=5

06/04/2009 04:33:32 PM - SPINE: Poller[0] Host[3] DEBUG: The POPEN returned the following File Descr
iptor 7
06/04/2009 04:33:33 PM - SPINE: Poller[0] Host[5] ERROR: Empty result [10.34.248.2]: 'C:/Perl/bin/Perl C:/Inetpub/wwwroot/cacti/scripts/ping-latency.pl 10.34.248.2'
06/04/2009 04:33:33 PM - SPINE: Poller[0] Host[5] DS[15] SCRIPT: C:/Perl/bin/Perl C:/Inetpub/wwwroot
/cacti/scripts/ping-latency.pl 10.34.248.2, output: U
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Change Perl to Perl.exe and make sure you have a good cygwin install. If you are simply using the binary distribution, make sure sh.exe is in the path.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
nomanlan
Posts: 31
Joined: Sat Aug 25, 2007 12:20 pm
Location: Texas

Post by nomanlan »

Yohoo!!! You're right, it's the Cygwin that I am missing. I downloaded and installed the Cygwin seup and followed the installation instructions in Cacti document. Spine works like a charm as soon as Cygwin is in place.

Much appreciated you'all helps!!!
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Hmm, I thought spine didn't require cygwin to be separately installed...

Does the spine package need newer/updated cygwin files distributed with it?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

It still needs sh.exe in the release version. It needs to be in the path.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests