[mrtg] Re: MRTG / Linux / cron
tschuh at verio.net
Wed Sep 15 01:06:54 MEST 1999
An easier way to do this under Linux is:
0-59/5 * * * * /apps/mrtg-2.8.8/mrtgsched
Check /var/log/cron to see what might be going on with your entries.
Neil Calvert wrote:
> Hi all
> I recently ported mrtg over to Linux (redhat 6.0) and so far it's working good. The only fly in the ointment is getting cron to work. I have created a script which calls all the config files and things I need, and when run manually, this works fine.
> However when I tried using crontab to add it to the user crontab file, it accepts the file but doesn't appear to run when required. The crontab listing is below :
> [mrtguser at noclin mrtg-2.8.8]$ crontab -l
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.4118 installed on Tue Sep 14 18:16:32 1999)
> # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * /apps/mrtg-2.8.8/mrtgsched
> The aim is to have cron run the mrtgsched script every five minutes. The script itself specifies all config files and binaries by their fully qualified paths so I don't think it's a path related issue. Besides, there isn't any mail being sent to the mrtg user - I understand cron would send a mail if it has problems running the file.
> Has anyone experienced any similar issues and if so, how did they fix them?
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg