[mrtg] Re: Threshold programs problem

Steve Shipway s.shipway at auckland.ac.nz
Tue Oct 24 03:45:44 MEST 2006


> I wrote the Perl script (Active State 5.8.8). That is  supposed to
take the
> parameters passed by ThreshProgI. It seems that the MRTG  program is
not
> passing the parameters (or is not passing them the way I  would
expect. It
> also does not appear to be setting the "ThreshDesc" environment
variable.
...
> my $description = $ENV{'ThreshDesc'};
...
> What am I doing wrong?

The variable name is 'THRESH_DESC'.  Try $ENV{'THRESH_DESC'} instead.

MRTG originated in UNIX-land, where environment variables are by
convention in all upper-case and case is significant.

Steve

--
Steve Shipway
ITSS, University of Auckland 
(09) 3737 599 x 86487
s.shipway at auckland.ac.nz

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



More information about the mrtg mailing list