OK, I have no idea why the last message I sent to the list looked like
code... So I'll try again.

Is program triggering from MRTG limited to Perl scripts, or could any
external program be run? Specifically I was thinking of VBScript through
WSH.

Christopher Congdon
Network Engineer
Congdon.WEB
[EMAIL PROTECTED]
http://www.congdonweb.com
317-920-9601


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Joseph Pierini
Sent: Wednesday, December 31, 2003 01:50
To: 'avinash phogat'; [EMAIL PROTECTED]
Subject: [mrtg] Re: threshold

http://people.ee.ethz.ch/~oetiker/webtools/mrtg/reference.html

ThreshDir: /usr/mrtg/threshold/
ThreshMaxI[_]: 85
ThreshMinI:[_]: 10
ThreshProgI[_]: /usr/sbin/emailme.pl

[EMAIL PROTECTED] mrtg]$  more /usr/sbin/emailme.pl
#!/usr/bin/perl
# Purpose: This script will send an email when either threshold value
has
been exceeded......  You can change the outcome to any desired
function...
(eg. "cat /dev/snd /home/idjit/sound_file.wav" to play a sound)

open EMAIL, ">/tmp/message";
        print EMAIL "helo me\n";
        print EMAIL "onex\n";
        print EMAIL "mail from: <[EMAIL PROTECTED]>\n";
        print EMAIL "rcpt to: <[EMAIL PROTECTED]>\n";
        print EMAIL "rcpt to: <[EMAIL PROTECTED]>\n";
        print EMAIL "data\n";
        print EMAIL "subject:  Threshold Exceeded blah blah blah";
print EMAIL ".\n";
print EMAIL "quit\n";
close EMAIL;
sleep 5;
`/usr/lib/sendmail -bs < /tmp/message`;

Good Luck!

JSP

-----Original Message-----
From: avinash phogat [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 30, 2003 9:58 PM
To: [EMAIL PROTECTED]
Subject: [mrtg] threshold


Hi!

Does anybody use MRTG Threshold Checking?
I want to receive an e-mail whenever
threshold value is achieved.can anyone provide me script for a linux 
platform for mrtg threshold

thanks in advance

Avinash Phogat

_________________________________________________________________
Free transactions in any ATM across India. 
http://server1.msn.co.in/msnleads/suvidha/dec03.asp?type=hottag Click
here.

--
Unsubscribe mailto:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
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

Reply via email to