vixie cron poller problem

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

Moderators: Developers, Moderators

Post Reply
majedz
Posts: 39
Joined: Fri Aug 07, 2015 8:15 am

vixie cron poller problem

Post by majedz »

Peace,
i am running cacti Version 0.8.8e on gentoo
at first there was the problem that rrds where not being populated, i managed to find out that poller was not running from cron.
if i run the poller manually using the cacti user, i get the rrds populated or created.

here is the setting in crontab:

Code: Select all

*/5 * * * *     cactiuser       /usr/bin/php -q /usr/bin/php /var/www/localhost/htdocs/cacti/poller.php > /var/log/poller.log 2>&1
here is the content of /var/log/poller.log

Code: Select all

PHP Parse error:  syntax error, unexpected '$' in /usr/lib64/php5.6/bin/php on line 17982

Parse error: syntax error, unexpected '$' in /usr/lib64/php5.6/bin/php on line 17982
how to solve this?
Seek and you shall find, knock and it shall be opened, cry and you will find comfort, thirst and you shall be watered.
trukonsult
Posts: 1
Joined: Sun Aug 09, 2015 9:23 am

Re: vixie cron poller problem

Post by trukonsult »

This looks wrong:
majedz wrote:here is the setting in crontab:

Code: Select all

*/5 * * * *     cactiuser       /usr/bin/php -q /usr/bin/php /var/www/localhost/htdocs/cacti/poller.php > /var/log/poller.log 2>&1
You probably want:

Code: Select all

*/5 * * * *     cactiuser       /usr/bin/php -q /var/www/localhost/htdocs/cacti/poller.php > /var/log/poller.log 2>&1
majedz
Posts: 39
Joined: Fri Aug 07, 2015 8:15 am

Re: vixie cron poller problem

Post by majedz »

thank you, this solved the problem.
Seek and you shall find, knock and it shall be opened, cry and you will find comfort, thirst and you shall be watered.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest