[mrtg] Re: Problem running mrtg from crontab

L.C.C. Hector M. Hernandez hehe at telnor.com
Tue Dec 5 21:53:22 MET 2000



Because the cronjob use csh shell....try running mrtg in a shell script like
this:
---------------------------------
#!usr/bin/csh
/usr/local/mrtg-2.9.4/bin/mrtg  /usr/local/mrtg-2.9.4/bin/mrtg.cfg
---------------------------------

make it executable (chmod 755) an run it.


Héctor.


----- Original Message -----
From: Dave Parker <dparker at pallisersd.ab.ca>
To: <mrtg at list.ee.ethz.ch>
Sent: Tuesday, December 05, 2000 12:41 PM
Subject: [mrtg] Problem running mrtg from crontab


>
> I am running mrtg 2.9.4 on a solaris 2.6 os. I am trying to run mrtg as
> a cronjob, but none of the graphs or the .log file in the workdir
> update, but the .html and the .ok file do update.  When I run mrtg from
> the command line, everything updates fine.
>
> My crontab entry looks like:
> 0,5,10,15,20,25,30,35,40,45,50,55 * * * *
> /usr/local/mrtg-2.9.4/bin/mrtg  /usr/local/mrtg-2.9.4/bin/mrtg.cfg
>
> I have tried running mrtg in a shell script with the above path, but the
> results are the same.
>
> Any suggestions?
>
> Thanks,
> Dave Parker
>
>
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
>


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list