[Solved] poller.php problems

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
hcpr
Posts: 5
Joined: Tue May 03, 2005 6:15 am

[Solved] poller.php problems

Post by hcpr »

Hi, hopefully someone knows how to solve this problem I'm having. I can't seem to find anything in the archives that matches.

When the poller i run, it basically hangs until it's killed because of timeout.
The following is the output from debug:
05/03/2005 02:40:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/localhost/htdocs/cacti/cmd.php 0 38]
05/03/2005 02:40:01 PM - PHPSVR: Poller[0] DEBUG: SERVER: cmd
05/03/2005 02:40:01 PM - PHPSVR: Poller[0] DEBUG: GETCWD: /
05/03/2005 02:40:01 PM - PHPSVR: Poller[0] DEBUG: DIRNAM: /var/www/localhost/htdocs/cacti
05/03/2005 02:40:01 PM - PHPSVR: Poller[0] DEBUG: FILENM: /var/www/localhost/htdocs/cacti/script_server.php
05/03/2005 02:40:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
05/03/2005 02:40:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
05/03/2005 02:40:01 PM - PHPSVR: Poller[0] ERROR: Input Expected, Script Server Terminating
05/03/2005 02:44:57 PM - POLLER: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
I looked through the poller.php script and I can only see one thing that looks strange (maybe) there:
Near the top it truncates the poller_time table:
  • // Initialize poller_time and poller_output tables
    db_execute("truncate table poller_time");
And later on in the script there is an attempt to read data from the same table:
  • while (1) {
    $polling_items = db_fetch_assoc("select poller_id,end_time from poller_time where poller_id = 0");

    if (sizeof($polling_items) == $process_file_number) {
This is probably not the problem :D

cacti version: 0.8.6d

Any suggestions would be very much appreciated.

Hans-Christian
Last edited by hcpr on Fri May 06, 2005 3:36 am, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks like PHP is segfaulting before polling any data. Do you have permissions setup properly? Is this a new install?

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?
hcpr
Posts: 5
Joined: Tue May 03, 2005 6:15 am

[solved]

Post by hcpr »

TheWitness wrote:Looks like PHP is segfaulting before polling any data. Do you have permissions setup properly? Is this a new install?

TheWitness
No permission problems that I could find.
However I set the machine to recompile everything over the last day (well, nearly everything, gcc, apache, php, mysql, cacti and some others :-) and now it looks like things are working properly.

I'm going to go with some incomatability with the version og php I was using.

Thanks for the reply.

Hans-Christian
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests