Error Cron and Poller

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

Moderators: Developers, Moderators

Post Reply
josk
Posts: 8
Joined: Fri May 04, 2012 3:35 am

Error Cron and Poller

Post by josk »

Hi, :)

I'm running with Cacti0.8.8a


I have an error message in my log:
NOTE: Poller Int: '300 ', Cron Int: '300', Time Since Last: '0 ', Max Runtime '298', Poller Runs: '1 '
NOTE: Cron is configured to run Too Often! The Poller Interval is '300 'seconds, with a minimum Cron period of '300' seconds, 0 seconds only goal Have Passed since the poller last ran.


I looked if the Cron threw well poller.php every 5 minutes this works I also see if my database (poller_lastrun) was changed, this also works.

Any idea? Thanks in advance
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Error Cron and Poller

Post by victorantunes »

Seems like the usual message of poller running outside of its schedule.

Try rebuilding your poller cache. Console-> Utilities -> System Utilities -> Rebuild Poller Cache.
josk
Posts: 8
Joined: Fri May 04, 2012 3:35 am

Re: Error Cron and Poller

Post by josk »

Thanks

I tried and i have still the same message.

POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '0', Max Runtime '298', Poller Runs: '1'
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 0 seconds have passed since the poller last ran.
victorantunes
Cacti User
Posts: 111
Joined: Fri Sep 28, 2012 6:52 pm

Re: Error Cron and Poller

Post by victorantunes »

post your poller cron entry.

also, post the values of both Poller Interval and Cron Interval under the Poller tab in Settings -> Poller.
josk
Posts: 8
Joined: Fri May 04, 2012 3:35 am

Re: Error Cron and Poller

Post by josk »

Cron entry : /bin/su - cacti -c "php /var/www/html/cacti/poller.php" > /dev/null 2>&1

Poller Interval : Every 5 minutes

Cron Inerval : Every 5 minutes
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error Cron and Poller

Post by gandalf »

Please verify from cron daemon log, that indeed only ONE poller is running
R.
josk
Posts: 8
Joined: Fri May 04, 2012 3:35 am

Re: Error Cron and Poller

Post by josk »

I had this problem yesterday, I corrected before posted message. And I still have the same error.

Sometimes poller.php launches cmd.php and i have this message at the end.

SYSTEM STATS: Time:9.0207 Method:cmd.php Processes:2 Threads:N/A Hosts:18 HostsPerProcess:9 DataSources:2894 RRDsProcessed:2170
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Error Cron and Poller

Post by gandalf »

josk wrote:Sometimes poller.php launches cmd.php and i have this message at the end.
cron log should show, that cron spans the poller call each and every 5 minutes. If not, this is a cron issue. If yes, this is a Cacti issue
R.
josk
Posts: 8
Joined: Fri May 04, 2012 3:35 am

Re: Error Cron and Poller

Post by josk »

Cron send this message every 5 minutes :

(root) CMD (/bin/su - cacti -c "php /var/www/html/cacti/poller.php" > /dev/null 2>&1)
josk
Posts: 8
Joined: Fri May 04, 2012 3:35 am

Re: Error Cron and Poller

Post by josk »

I have test to force cron :

*/5 * * * * /bin/su - cacti -c "php -q /var/www/html/cacti/poller.php --force" > /dev/null 2>&1

but i have Database error ( Poller[0] ERROR: A DB Exec Failed!, Error:'1062') for repare this error I have change cmd.php

db_execute("insert into poller_output (local_data_id,rrd_name,time,output) values (" . $item["local_data_id"] . ",'" . $item["rrd_name"] . "','$host_update_time','" . addslashes("U") . "')");

by

db_execute("replace into poller_output (local_data_id,rrd_name,time,output) values (" . $item["local_data_id"] . ",'" . $item["rrd_name"] . "','$host_update_time','" . addslashes("U") . "')");

but after this modification my graph doesn't display

At the end i have delete all change.
josk
Posts: 8
Joined: Fri May 04, 2012 3:35 am

Re: Error Cron and Poller

Post by josk »

i have change poller.php for display $seconds and $poller_lastrun
line 196
cacti_log("NOTE: $task_type is configured to run too often! The Poller Interval is '$poller_interval' seconds, with a minimum $task_type period of '$min_period' seconds, but only " . ($seconds - $poller_lastrun) . ' seconds have passed since the poller last ran. sc = '.$seconds.' last = '.$poller_lastrun.' fin', true, 'POLLER');

log display

10/08/2012 04:45:01 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 0 seconds have passed since the poller last ran. sc = 1349707501 last = 1349707501 fin
josk
Posts: 8
Joined: Fri May 04, 2012 3:35 am

Re: Error Cron and Poller

Post by josk »

I still have the same problem nobody has an idea?

thx in advance
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests