[mrtg] Re: Thresholds
Simon Watts
swatts at connect.com.au
Fri Aug 9 04:22:29 MEST 2002
You should not be passing THRESH_DESC to you script. It is an environment
variable set by MRTG prior to calling the mrtgthreshover.sh script.
The environment variables set are accessed directly by your script.
It appears that you are running a shell script, and I don't know off the
top of my head how to access them from a shell script, but if you were
using perl, it would be like this:
use Env qw(THRESH_DESC);
Your perl script will now have a variable called $THRESH_DESC with the
value place in it by MRTG.
You will probably need to look into accessing environment variables from
within a shell script
Simon
>
> What I'm trying to do is get a description of the interface out to the
> mrtgthresholdover.sh script but when ever I use
>
> ThreshProgI[router_Se1]: /usr/local/bin/mrtgthresholdover.sh $THRESH_DESC
>
> MRTG errors complaining about that line, everything else is working ok
> though.
>
> ANy suggestions ???
>
>
>
> > Regards
> >
> > Paul Gibson
> >
> >
>
> --
> 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
>
>
----------------------------------------------------------------
Simon Watts Assoc. Network Architect 180 Burnley St
swatts at connect.com.au Ph +61 3 8414 3126 Richmond
Connect Internet Sol. Fax +61 3 8414 3115 Vic, Aust, 3121
----------------------------------------------------------------
--
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