Cron is configured to run too often

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

Moderators: Developers, Moderators

Post Reply
Devroush
Posts: 27
Joined: Sun Jan 22, 2006 7:35 am

Cron is configured to run too often

Post by Devroush »

I'm having some serious issues here. Since last night, the poller won't run anymore. It keeps giving this error:
01/03/2008 03:30:02 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 -5013141 seconds have passed since the poller last ran.
01/03/2008 03:30:02 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '-5013141', Max Runtime '298', Poller Runs: '1'

I did some misconfigurations yesterday and on some systems, the date went wrong. I guess this is the reason that the poller can't run anymore. Is there a way to reset the time since last run parameter? I browsed a bit through the source and truncated the table poller_time, but the problem stays.
Devroush
Posts: 27
Joined: Sun Jan 22, 2006 7:35 am

Post by Devroush »

I think I fixed it by deleting poller_lastrun from the settings table.
Devroush
Posts: 27
Joined: Sun Jan 22, 2006 7:35 am

Post by Devroush »

I messed up pretty bad I think :D .
Only the yearly graph is looking good, the others are somehow less precise and the since I got the poller running again, nothing shows at all! I got no errors in the cacti log and also debugging the graphs gives me an OK.
What could be going on here?
Attachments
graphs.JPG
graphs.JPG (76.95 KiB) Viewed 15052 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

This is cacti 087 or 087a?
Reinhard
Devroush
Posts: 27
Joined: Sun Jan 22, 2006 7:35 am

Post by Devroush »

0.8.7a
Devroush
Posts: 27
Joined: Sun Jan 22, 2006 7:35 am

Post by Devroush »

When I run poller.php manually I see this for all the rrd's:
ERROR: illegal attempt to update using time 1199413197 when last update time is 1204383748 (minimum one second step)

I guess the rrd now contains data from an incorrect time... I searched a bit how to manually edit rrd's but I gave up and just deleted everything. A shame :) (thread may be closed)
User avatar
pgus
Cacti User
Posts: 55
Joined: Fri Feb 10, 2006 9:54 am

Post by pgus »

Change line in poller.php to TRUE and run poller manual

Code: Select all

$force = FALSE;

Code: Select all

php /var/www/html/poller.php
Change it back to FALSE
churchi
Posts: 46
Joined: Tue Oct 26, 2004 2:08 am

Post by churchi »

pgus wrote:Change line in poller.php to TRUE and run poller manual

Code: Select all

$force = FALSE;

Code: Select all

php /var/www/html/poller.php
Change it back to FALSE
Awesome, this fixed up my issue i had today when my clock on the server when out of whack.
GrL
Posts: 29
Joined: Thu Jan 13, 2011 7:29 am

Re: Cron is configured to run too often

Post by GrL »

This helped me too. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests