[SOLVED] Cron out of sync with Poller Interval cacti 0.8.7a

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

Moderators: Developers, Moderators

networkfupa
Posts: 47
Joined: Tue Oct 21, 2008 6:16 pm

Post by networkfupa »

I am getting the aforementioned error message and I know for a fact cron is running successfully because it is in my crond log with the php command.

Yet is still get this error:
01/09/2009 12:11:20 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '60' seconds, with a maximum of a '300' second Cron, but 79 seconds have passed since the last poll!


Any ideas ?
networkfupa
Posts: 47
Joined: Tue Oct 21, 2008 6:16 pm

Post by networkfupa »

What does the -q argument passed to php do?[/quote][/code]
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

The -q flag suppresses HTTP header output.
Reinhard
aitm908
Posts: 15
Joined: Fri Jan 16, 2009 9:50 am

TIME CHANGE ON LINUX -> PHP POLLER.PHP STOPPED WORKING

Post by aitm908 »

All,

Good morning. After reading the posts noticed that although my script was running, attempting to force it to manually using php poller.php was not working.

Looked over all of your notes, and for me, the reason the poller.php stopped working was because the time was off on my machine, and had synced it with an ntp server.

This unfortunately caused me to get the following since my time was ahead of current time:
07/14/2009 11:49:01 AM - POLLER: Poller[0] NOTE: Cron is configured to run too often! The Poller Interval is '60' seconds, with a minimum Cron period of '60' seconds, but only -31382 seconds have passed since the poller last ran.

After adding in --force, the problem was resolved:
*/1 * * * * php /var/www/html/poller.php --force > /dev/null 2>&1

In either case, thank you for your help with the great post as it pointed me to the right direction.
brokenz
Posts: 5
Joined: Mon Dec 21, 2009 11:45 pm
Location: Indonesia
Contact:

Re: [SOLVED] Cron out of sync with Poller Interval cacti 0.8

Post by brokenz »

I have problem today early morning, thanks for solution provided here to solve my problem :D .

I just add on my cron file with -q and --force like below :

php -q /usr/share/cacti/site/poller.php --force >/dev/null 2>/var/log/cacti/poller-error.log

cacti 0.8.7g with Ubuntu 11.10 8)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests