[mrtg] Re: root cron error

Leif Neland leifn at neland.dk
Tue Nov 16 23:47:05 MET 1999



On Tue, 16 Nov 1999, Jason Swenson wrote:

> I have placed the following in my root cron 
> 
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * ./mrtg mrgt1.cfg
> I keep getting this error 
> 
> ERROR: unable to open config file: 
> Usage: mrtg <config-file>
> mrtg: Multi Router Traffic Grapher.
> 
> If I type the command manually it works fine.
> 
> The cron job below is the suggested one.  I believe the problem is to do with
> the <mrtg-bin>/mrtg  I don't know what these are.  Can someone give me some
> insight. 
> 
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * * \
> <mrtg-bin>/mrtg <path to mrtg-cfg>/mrtg.cfg 
> 
You're lucky ./mrtg works. Use absolute paths instead.
<mrtg-bin> means the path to mrtg, ex "/usr/local/bin", or where you've
put mrtg.
<path to mrtg-cfg> means simply "path to mrtg-cfg", eg "/usr/local/etc"

So the line could be
0,...(etcetera) /usr/local/bin/mrtg /usr/local/etc/mrtg.cfg

Leif

--
* 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 mailing list