cron running php script, but not updating rrds

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

Moderators: Developers, Moderators

Post Reply
chale99

cron running php script, but not updating rrds

Post by chale99 »

I just finished installing cacti on RH9. Everything went smooth and without any issues.

I'm having one problem whereby the cron job is running, but the rrd's are not being updated. I'm tailing /var/log/cron and can see the cron job being run as cactiuser every 5 minutes, but the data doesn't appear to be getting into the rrds. If I run the script manually as cactiuser, it works and data is entered into the rrds and shows up on the graphs.

Any ideas?
chale99

Post by chale99 »

also - checked permissions on rra/ and log/ and it's set at cactiuser/cactiuser, and chmod is 644 on all the rrd files.

Chris
KGB

Post by KGB »

make sure you are using complete pathnames in your cronjob. cron usually has different paths. so for example, don't put "php file.php" in your cron, but instead put "/usr/bin/php file.php" in there
ThyReX
Posts: 6
Joined: Wed Feb 04, 2004 8:33 pm

Post by ThyReX »

i had the same problem, i fixed it by writting the full path to the bin used on the scripts and full path on the cron too. work fine.

also check http://www.raxnet.net/board/viewtopic.p ... ht=crontab
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest