[mrtg] Re: Threshold Program Help

Pete Templin pete.templin at texlink.com
Tue May 27 19:38:36 MEST 2003


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
pete.templin at texlink.com
(210) 892-4183

-----Original Message-----
From: Naman Latif [mailto:naman.latif at inamed.com]
Sent: Tuesday, May 27, 2003 12:25 PM
To: mrtg at list.ee.ethz.ch
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:Bastian.Pese at psb.de]
>
>
> 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: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