Error Cron and Poller
Moderators: Developers, Moderators
Error Cron and Poller
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
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
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: Error Cron and Poller
Seems like the usual message of poller running outside of its schedule.
Try rebuilding your poller cache. Console-> Utilities -> System Utilities -> Rebuild Poller Cache.
Try rebuilding your poller cache. Console-> Utilities -> System Utilities -> Rebuild Poller Cache.
Re: Error Cron and Poller
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.
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.
-
- Cacti User
- Posts: 111
- Joined: Fri Sep 28, 2012 6:52 pm
Re: Error Cron and Poller
post your poller cron entry.
also, post the values of both Poller Interval and Cron Interval under the Poller tab in Settings -> Poller.
also, post the values of both Poller Interval and Cron Interval under the Poller tab in Settings -> Poller.
Re: Error Cron and Poller
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
Poller Interval : Every 5 minutes
Cron Inerval : Every 5 minutes
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Error Cron and Poller
Please verify from cron daemon log, that indeed only ONE poller is running
R.
R.
Re: Error Cron and Poller
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
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
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Re: Error Cron and Poller
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 issuejosk wrote:Sometimes poller.php launches cmd.php and i have this message at the end.
R.
Re: Error Cron and Poller
Cron send this message every 5 minutes :
(root) CMD (/bin/su - cacti -c "php /var/www/html/cacti/poller.php" > /dev/null 2>&1)
(root) CMD (/bin/su - cacti -c "php /var/www/html/cacti/poller.php" > /dev/null 2>&1)
Re: Error Cron and Poller
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.
*/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.
Re: Error Cron and Poller
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
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
Re: Error Cron and Poller
I still have the same problem nobody has an idea?
thx in advance
thx in advance
Who is online
Users browsing this forum: No registered users and 2 guests