Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Crontab on RedHat 8

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
Valentin



Joined: 06 Jan 2003
Posts: 8

PostPosted: Mon Jan 06, 2003 2:51 pm    Post subject: Crontab on RedHat 8 Reply with quote

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

PostPosted: Tue Jan 07, 2003 2:48 am    Post subject: Reply with quote

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

PostPosted: Tue Jan 07, 2003 8:57 am    Post subject: Reply with quote

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





PostPosted: Tue Feb 18, 2003 4:03 pm    Post subject: Reply with quote

What was the script you did to run that? Im having the same problem with 8.0
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group