new user problem generating graphs

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

Moderators: Developers, Moderators

kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

Here is a cut and paste of it... was i supposed to redirect it from dev/null?

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/


*/5 * * * * cactiuser php /usr/local/downloads/cacti-0.8.6h/poller.php > /dev/null 2> &1

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please change

Code: Select all

*/5 * * * * cactiuser php /usr/local/downloads/cacti-0.8.6h/poller.php > /dev/null 2> &1
to

Code: Select all

*/5 * * * * cactiuser /full/path/to/php /usr/local/downloads/cacti-0.8.6h/poller.php > /usr/local/downloads/cacti-0.8.6h/log/poller.log 2> &1
Now, you'll always find the output of the last pollers run in ./log/poller.log. Please check this file after one pollers run. And please check the file in ./rra for ownership. They should be owned by cactiuser:cactiuser
Reinhard
kvnflynn
Posts: 11
Joined: Thu May 18, 2006 9:40 am

Post by kvnflynn »

I changed the crontab using crontab -e and that seemed to work. Apparently I was not editing the correct crontab file for cactiuser. Now I'm getting graphs and seems to be working good.

I really appreciate all the help. You have been more than patient..

Thanks much, Kevin.

Final crontab config:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/


*/5 * * * * /usr/local/downloads/cacti-0.8.6h/poller.php >> /dev/null 2>&1

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests