Spine Poller Errors - PHP Script Server communications lost

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

Moderators: Developers, Moderators

Post Reply
gharper
Posts: 2
Joined: Thu May 07, 2009 10:50 am
Location: Seattle, WA

Spine Poller Errors - PHP Script Server communications lost

Post by gharper »

I just upgraded both Cacti and Spine from 0.8.7e to 0.8.7g, and nearly everything appears to be working, however I started seeing hundreds of these errors in the Cacti log for every poller cycle:

Code: Select all

09/29/2010 11:26:38 AM - SPINE: Poller[0] ERROR: SS[3] PHP Script Server communications lost. Restarting PHP Script Server
...and a bit of digging shows that the ss_host_disk.php and ss_host_cpu.php scripts aren't running correctly, and the graphs that rely on those scripts aren't updating any longer.

When I run spine manually, I see this in the output:

Code: Select all

09/29/2010 11:22:50 AM - SPINE: Poller[0] DEBUG: SS[4] Confirmed PHP Script Server running using readfd[15], writefd[11]
PHP Fatal error:  Call to undefined function:  parseargs() in /var/www/html/cacti/script_server.php on line 175
09/29/2010 11:22:50 AM - SPINE: Poller[0] Host[141] TH[1] DS[2199] SS[4] SERVER: /var/www/html/cacti/scripts/ss_host_disk.php ss_host_disk host.domain.com 141 2:161:500:1:10:xxx:::MD5::DES: get total 10, output: 0
Changing to cmd.php for the poller changes the error, but it's still choking on the same two scripts...

At this point, I think this might be an issue with my PHP installation, however I'm at a loss as to how to fix it. Any suggestions?

OS: RHEL 4
PHP packages:
  • php-devel-4.3.9-3.22.9
    php-4.3.9-3.22.9
    php-gd-4.3.9-3.22.9
    php-snmp-4.3.9-3.22.9
    php-pear-4.3.9-3.22.9
    php-mysql-4.3.9-3.22.9
Update:
Moving the parseArgs() function in script_server.php to the top of the file seems to have fixed the "Call to undefined function" error...

I also noticed that spine was referencing a different conf file in /var/net-snmp/spine.conf and throwing "Warning: Unknown token: DB_****". Once I deleted that conf file (leaving the actual one in /usr/local/spine/etc/spine.conf) everything appears to be working now.

If anyone has any insight as to why this happened though, I'd be interested in understanding the root cause!
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Spine Poller Errors - PHP Script Server communications l

Post by TheWitness »

Yup. that's an issue with that old and 'reliable' PHP 4. I don't dev on it anymore. Sorry about that...

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 2 guests