[mrtg] threshold script not executed
Werner.Beck at lidl.de
Werner.Beck at lidl.de
Thu Aug 17 08:59:12 MEST 2000
Hello,
I tried to monitor the ISDN interface on one of our routers, if the
interface goes up, a mail should be sent, but I don't receive any mails.
For troubleshooting I reduced the script to a minimum and tried several
values as ThreshMinI. I did some testing with ThreshMaxO but also no
effect. The script itself works when I start it (> perl threshprog.pl). The
value of the oid should be the right one, I graph it, and the returned
value is 5.
Any suggestions, or a hint, what I can use instead of a perl script first
for troubleshooting as ThreshProgI ("echo or something like that)?
Thanks in advance for any help,
Werner Beck
# Test for Interface BRI0/1 up and down
# OID ifOperStatus: 5=dormant, 1=up
Options[bri01]: gauge, integer
Target[bri01]:1.3.6.1.2.1.2.2.1.8.2&1.3.6.1.2.1.2.2.1.8.2:comunitiy at 10.1.23.37
ThreshMinI[bri01]: 10
ThreshProgI[bri01]: /usr/mrtg/scripts/threshprog.pl
MaxBytes[bri01]: 10
----------------------- PERL script (threshprog.pl)
-------------------------
#!/usr/local/bin/perl
my();
$emailprog = "/bin/mail -s 'MRTG Thresh'";
$emailuser = "root";
$message .= "Interface UP";
system("echo '$message' | $emailprog $emailuser");
--
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