[mrtg] Threshold problems

Giovanni Gimelli ggimelli at interpuntonet.it
Tue Jul 25 16:49:10 MEST 2000


I've configured mrtg config file to evaluate threshold:
(...)
ThreshDesc[rete131]: 131
ThreshMaxI[rete131]: 25k
ThreshProgI[rete131]: /home/httpd/html/mrtg/soglie/script/131over25k

The Perl script /home/httpd/html/mrtg/soglie/script/131over25k is:

#!/usr/bin/perl                         
$Addressee = "<username at popserver>";        
$Mailer = "/bin/mail";
$Data = localtime;
$Soglia = "25 k";
#$Rete = 131;
open (MESSAGE,"| $Mailer -s "trespassed threshhold" $Addressee");
print MESSAGE <<FINE
$Soglia threshold has been trespassed on $ENV{THRESH_DESC} network.
$Data.

message sent to $Addressee from Mrtg
FINE

But message arrived to <username at popserver> don't contains
$ENV{THRESH_DESC} variable descripted in config.html file.
How can I do to pass it to script?
Thanks.
Giovanni

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