What errors do you get when you run mrtg from the command line? Probably a permissions mismatch between the user that owns the threshold program and the user that cron runs as.
If your file permissions are right and you begin the script with "/usr/bin/perl" (or /your/path/to/perl), you shouldn't need to specify 'perl /path/to/script', only /path/to/script. Pete Templin IP Network Engineer Tex-Link Communications [EMAIL PROTECTED] (210) 892-4183 -----Original Message----- From: Naman Latif [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 27, 2003 12:25 PM To: [EMAIL PROTECTED] Subject: [mrtg] Re: Threshold Program Help Still doesn't work. Do I have to specify some ENV variable ? even though I am giving Full path to the Script location. Regards \\ Naman > From: Bastian Pese [mailto:[EMAIL PROTECTED] > > > When the Script only run from your Command line with Perl > infront, tried this: > > ThreshProgI[sb-cr_13]:'perl /export/home/nlatif/scripts/cr-bw.pl' > ThreshProgO[sb-cr_13]:'perl /export/home/nlatif/scripts/cr-bw.pl' > > Bastian > > Naman Latif wrote: > > Hi, > I have a perl script that I want to run, when a certain > Threshold Value is reached. My Config file looks like > > ThreshMaxI[sb-cr_13]: 60 > ThreshMaxO[sb-cr_13]: 60 > ThreshProgI[sb-cr_13]:/export/home/nlatif/scripts/cr-bw.pl > ThreshProgO[sb-cr_13]:/export/home/nlatif/scripts/cr-bw.pl -- Unsubscribe mailto:[EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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
