poller won't run cos not enough seconds have passed error

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

Moderators: Developers, Moderators

Post Reply
AndyUKG
Posts: 1
Joined: Tue Jun 07, 2011 4:50 am

poller won't run cos not enough seconds have passed error

Post by AndyUKG »

Hi,

can anyone help me out here, the poller randomly won't run, all my
graphs have more holes in them than data. Here is an example of the
problem, I check the data in the poller_time table, then check the
system time, then try and run the poller and it tells me only 61
seconds have passed when 361 seconds have passed. What's it doing??

Code: Select all

  select * from cacti.poller_time:
+----+-----+-----------+---------------------+---------------------+
| id | pid | poller_id | start_time          | end_time            |
+----+-----+-----------+---------------------+---------------------+
|  1 |   0 |         0 | 2011-06-06 17:10:33 | 2011-06-06 17:10:33 |
|  2 |   0 |         0 | 2011-06-06 17:10:43 | 2011-06-06 17:10:43 |
+----+-----+-----------+---------------------+---------------------+
Looking at the system time a few seconds later:

Code: Select all

# date
Mon Jun  6 17:16:07 BST 2011
Trying to run the poller:

Code: Select all

# su - cacti -c "/usr/local/bin/php /usr/home/cacti/poller.php"
06/06/2011 05:16:09 PM - POLLER: Poller[0] NOTE: Poller Int: '300',  
Cron Int: '300', Time Since Last: '69', Max Runtime '298', Poller  
Runs: '1'
06/06/2011 05:16:09 PM - POLLER: Poller[0] NOTE: Cron is configured to  
run too often!  The Poller Interval is '300' seconds, with a minimum  
Cron period of '300' seconds, but only 69 seconds have passed since  
the poller last ran.
I have (so far as I can tell) another an identical server which is running without problems. So far I have tried, upgrading PHP 5.2 to 5.3, upgrading Cacti from 0.8.7e to 0.8.7g, rebuilding the poller cache, forcing the poller to run.
It's really curious that when its incorrectly saying that only X number of seconds have passed that X seems to be always the real number of seconds + some multiple of 300.

I'm very stumped, been looking at this for the last 2 days and can't work it out, any help much appreciated,

thanks Andy.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: poller won't run cos not enough seconds have passed erro

Post by gandalf »

Use "php -q poller.php --force" to get in line again
R.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest