[mrtg] MRTG / Linux / cron
ncalvert at cabletron.com
Wed Sep 15 00:54:09 MEST 1999
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?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the mrtg