[mrtg] Re: can ThreshProg be a perl script?

alex at ergens.op.Het.Net alex at ergens.op.Het.Net
Wed Apr 12 22:50:55 MEST 2000


Rolen, Mark E. wrote:

> I set ThreshMaxO to an extremely low value so that my ThreshProgO gets run
> on every instance of mrtg.  When ThreshProg is a shell script, it runs fine,
> but when I put a PERL script in there that does nothing but open a file and
> print "yep" into it (and which runs sucessfully from the command line), it
> seems to never be run...  It's not a permissions problem with writing to the
> file, as both scripts write to the same file.

Try running MRTG from the command line.  If it works in that case, the
problem is in your PATH setting when run from cron.  Using full paths
in the script will help in that case.

regards,
-- 
   __________________________________________________________________
 / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
| work                                                         private |
| My employer is capable of speaking therefore I speak only for myself |
+----------------------------------------------------------------------+
| http://faq.mrtg.org/                                                 |
| http://rrdtool.eu.org  --> tutorial                                  |
+----------------------------------------------------------------------+

--
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

--
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



More information about the mrtg mailing list