|
|
| Author |
Message |
Guest
|
Posted: Fri Aug 06, 2004 5:45 pm Post subject: Strange output for poller.php |
|
|
Strange output for poller.php
===================
Release : cacti-0.8.6-pre20040806.zip
When I execute manually poller.php (on an XP workstation from a cmd dialog box) I get many message telling "Waiting on 1/1 pollers" (see joined file)
I don't understand why, I have only to display 2 graphs.
Does the poller don't try to do anything else ?
Join is this extract of
C:\Documents and Settings\Didier>c:\php\php.exe c:\apache2\htdocs\cacti\poller.php > stdout.txt
May be it is normal, it was just to mention it to you
Didier
| Description: |
|
 Download |
| Filename: |
stdout.txt |
| Filesize: |
151.81 KB |
| Downloaded: |
188 Time(s) |
|
|
| Back to top |
|
 |
Guest
|
Posted: Sun Aug 08, 2004 7:14 pm Post subject: |
|
|
I'm seeing the same output too.
Upgraded to .8.6 from .8.5a also first run of poller.php came up with an error could not find /tmp/ots/6 so i created a /tmp/ots directory to overcome that issue.
Now getting the Waiting on 1/1 Poller message and no stats being graphed ... wen't back to using cmd.php in the cron for now and things seem to be working again for now.
|
|
| Back to top |
|
 |
Gremlin
Joined: 06 Jul 2004 Posts: 11
|
Posted: Sun Aug 08, 2004 7:17 pm Post subject: |
|
|
| Doh wasn't logged in .. have gone back to poller.php and it does seem to be working now .. though it's taking 280 seconds to poll 4 hosts, does that sound right ?
|
|
| Back to top |
|
 |
Gremlin
Joined: 06 Jul 2004 Posts: 11
|
Posted: Sun Aug 08, 2004 7:56 pm Post subject: |
|
|
| Looks like 99% of the time my poller.php is exceeding the 300 seconds execution time and not generating any data for the graphs.
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Sun Aug 08, 2004 8:06 pm Post subject: |
|
|
Please run cmd.php from a command prompt. This will not update your RRD files, but it will provide some insight into what is happening. Before you do this however, you must turn the Logging level upto High and view the logfile for some clues.
Also, there is a known problem with PHP v5 in Windows. If you are running this version, please point Cacti to the following file c:\php\php-win.exe instead of c:\php\php.exe.
TheWitness
|
|
| Back to top |
|
 |
Gremlin
Joined: 06 Jul 2004 Posts: 11
|
Posted: Sun Aug 08, 2004 8:24 pm Post subject: |
|
|
Running under Linux actually, and not running cmd.php under command line, I'm running poller.php as advised in the install, only tried cmd.php briefly when poller.php didn't seem to be working.
I've got an error to chase up in the logs though which might be the cause of it.
What about the /tmp/ots/ error ? is that just something missed from the install instructions needing to create that directory?
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Sun Aug 08, 2004 8:47 pm Post subject: |
|
|
Yes,
I wrote the logging routes in Cacti. The best way to debug, is to turn the logging to High and then run cmd.php from a shell script. You will receive your output on the terminal and spot the errors right away. If you like, you can post them here, or if you are concerned about communities, you can e-mail me at larryjadams@comcast.net.
To my knowledge, there is no requirement for the /tmp/ots directory in Cacti. Good luck on your debugging. Since we are in beta test, your feedback is quite important. I will track this post.
TheWitness
Cacti Developer
|
|
| Back to top |
|
 |
Gremlin
Joined: 06 Jul 2004 Posts: 11
|
Posted: Sun Aug 08, 2004 9:04 pm Post subject: |
|
|
Ran a clean install, all problems seem to have vanished
I was getting a mysql error in the log saying it was failing, I couldn't see anything wrong with the config.php settings but I think it may have had something to do with the way I upgraded.
Basically what I did was this
I installed the beta as a fresh install to begin with once I was happy it was working I then followed the upgrade intructions. Rather than copying a clean extract of the files from the tar file I copied over all the files from my test install, updated the config.php to change to the old database, ran the web "upgrade" and went for it.
I think somewhere along that process something went awry.
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Tue Aug 10, 2004 6:37 pm Post subject: |
|
|
A small snaffu with one of our developers. It is corrected in CVS as of this afternoon.
TheWitness
|
|
| Back to top |
|
 |
gjandrews35
Joined: 23 Sep 2003 Posts: 17 Location: USA
|
Posted: Wed Aug 18, 2004 12:43 pm Post subject: |
|
|
Hmm this is interesting as I too am experiencing this particulare problem
$ php poller.php
Waiting on 1/1 pollers. {583 times...}
08/18/2004 10:17 AM - CMDPHP: Poller[0] Maximum runtime of 296 seconds exceeded. Exiting.
Also rrd's never get created unless I run cmd.php or create
them manually.
Graphs dont appear in the 'Graphs' tab under tree view
but the do under List or Preview views.
I was having a problem creating Graph trees but that was corrected with
a 'upgrade' procedure.
I am running 0.8.6
php 4.3.8
mysql Ver 12.22 Distrib 4.0.20, for sun-solaris2.9 (sparc)
gcc version 3.4.1
perl, v5.8.0 built for sun4-solaris-thread-multi
Python 2.3.3
SunOS 5.9 Generic_112233-03 sun4u sparc SUNW,Ultra-5_10
|
|
| Back to top |
|
 |
TheWitness Developer
Joined: 14 May 2002 Posts: 9671 Location: MI, USA
|
Posted: Wed Aug 18, 2004 12:57 pm Post subject: |
|
|
Glenn, Glenn, Glenn,
It's me again. So, we get CACTID working, and now what... Ok, we need to understand what's going on in Solaris. I will work with you on debuging Poller.php at your convenience (tonight, Wednesday) if you have time.
TheWitness
|
|
| Back to top |
|
 |
|