|
|
| Author |
Message |
Valentin
Joined: 06 Jan 2003 Posts: 8
|
Posted: Mon Jan 06, 2003 2:51 pm Post subject: Crontab on RedHat 8 |
|
|
Hi,
I've edit the crontab like in the manual, but it won't work.
Jan 6 21:57:00 t35 crond[20726]: (*system*) RELOAD (/etc/crontab)
Jan 6 21:57:31 t35 crond[20828]: (CRON) STARTUP (fork ok)
Jan 6 22:00:00 t35 CROND[20993]: (ftpuser) CMD (/usr/bin/php /www/system/monitoring/cmd.php > /dev/null 2>&1)
When I run the command on the command-line the files in the rra directory are updatet but as cronjob it doesn't work.
Is there any solution for this problem?
thx
Valentin |
|
| Back to top |
|
 |
bulek Cacti Pro User
Joined: 20 May 2002 Posts: 852 Location: Poland
|
Posted: Tue Jan 07, 2003 2:48 am Post subject: |
|
|
You are using ftpuser user for running cmd.php from cron. Ensure it has permission to update your rrd files. Also check if path and environment variables are set correctly for cron jobs (look at the beginning of crontab file).
- bulek |
|
| Back to top |
|
 |
Valentin
Joined: 06 Jan 2003 Posts: 8
|
Posted: Tue Jan 07, 2003 8:57 am Post subject: |
|
|
I've developed a solution, but it's a little bit freaky
Every 5 Minutes the crontab runs ssh (with a keybased login) which connects to localhost and run the command to update the files.
It's working fine ... |
|
| Back to top |
|
 |
jhay Guest
|
Posted: Tue Feb 18, 2003 4:03 pm Post subject: |
|
|
| What was the script you did to run that? Im having the same problem with 8.0 |
|
| Back to top |
|
 |
|