Cron out of sync with poller intervel
Moderators: Developers, Moderators
Cron out of sync with poller intervel
POLLER: Poller[1] WARNING: Cron is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 538.3 seconds have passed since the last poll!
2017-04-02 14:45:03 - SYSTEM STATS: Time:1.2247 Method:cmd.php Processes:1 Threads:N/A Hosts:6 HostsPerProcess:6 DataSources:14 RRDsProcessed:8
OK u:0.00 s:0.00 r:1.04
OK u:0.00 s:0.00 r:1.04
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
Please help with these error
2017-04-02 14:45:03 - SYSTEM STATS: Time:1.2247 Method:cmd.php Processes:1 Threads:N/A Hosts:6 HostsPerProcess:6 DataSources:14 RRDsProcessed:8
OK u:0.00 s:0.00 r:1.04
OK u:0.00 s:0.00 r:1.04
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
OK u:0.00 s:0.00 r:1.05
Please help with these error
Re: Cron out of sync with poller intervel
Not enough info. Also it looks like you manually ran the poller?
Re: Cron out of sync with poller intervel
Actually the cacti version is 1.0.4
Its on centos 7
The problem is that the cron is not working..
It only executes the task after i manually run the php file, generating error like above
Also the main poller stays in idle state after i execute this command.. but after 300 seconds/next poll time the state goes to 'unknown'
Please help me with what to do
Its on centos 7
The problem is that the cron is not working..
It only executes the task after i manually run the php file, generating error like above
Also the main poller stays in idle state after i execute this command.. but after 300 seconds/next poll time the state goes to 'unknown'
Please help me with what to do
Re: Cron out of sync with poller intervel
Please paste your crontab so we can troubleshoot it and state which file you are editing, and whether you are using "crontab -e" to do so.
Re: Cron out of sync with poller intervel
Hi
my crontab is as following
*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
Also i dont use crontab -e to access it.
I use vi /etc/cron.d/cacti to access it.
Please help me out.
my crontab is as following
*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
Also i dont use crontab -e to access it.
I use vi /etc/cron.d/cacti to access it.
Please help me out.
Re: Cron out of sync with poller intervel
Anyone please help for this .... Really stuck with why cron is out of sync with poller interval...
Re: Cron out of sync with poller intervel
At this point it could still be lots of things. Do you have selinux running? Does the cacti user actually exist? Can the cacti user actually execute that command?
Re: Cron out of sync with poller intervel
selinux is running,
cacti user do exixt...
But how to verify is cacti user is able to execute the command?
cacti user do exixt...
But how to verify is cacti user is able to execute the command?
Re: Cron out of sync with poller intervel
First, try temporarily disabling selinux by running this command
and then see if the poller runs by itself.
You can try running the command as the cacti user like this
pay attention to the "su - cacti" part, that dash needs to be right where it is and not -cacti
Code: Select all
setenforce 0
You can try running the command as the cacti user like this
Code: Select all
su - cacti -c "/usr/bin/php /usr/share/cacti/poller.php"
Re: Cron out of sync with poller intervel
I am not able to execute the php file by the following command
su - cacti -c "/usr/bin/php /usr/share/cacti/poller.php"
the error says
'This account is currently not available'
So where might be the issue ??
su - cacti -c "/usr/bin/php /usr/share/cacti/poller.php"
the error says
'This account is currently not available'
So where might be the issue ??
Re: Cron out of sync with poller intervel
Change the cron to run as root instead of cacti and see if it runs then.
Re: Cron out of sync with poller intervel
For that i need to replace 'cacti' with 'root' in below crontab?
*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
Should i make it as
*/5 * * * * root /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
????
*/5 * * * * cacti /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
Should i make it as
*/5 * * * * root /usr/bin/php /usr/share/cacti/poller.php > /dev/null 2>&1
????
Re: Cron out of sync with poller intervel
Honestly, I would delete that file completely, and then use
crontab -e
to add the crontab for root. When doing it that way, leave off the username like so
*/5 * * * * /usr/bin/php /usr/share/cacti/poller.php > /tmp/poller.log
then check the /tmp/poller.log file to see if it exists and what it contains
crontab -e
to add the crontab for root. When doing it that way, leave off the username like so
*/5 * * * * /usr/bin/php /usr/share/cacti/poller.php > /tmp/poller.log
then check the /tmp/poller.log file to see if it exists and what it contains
Who is online
Users browsing this forum: No registered users and 1 guest