[mrtg] Re: threshold

Christopher A. Congdon ccongdon at congdonweb.com
Mon Jan 5 15:39:41 MET 2004


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
ccongdon at congdonweb.com
http://www.congdonweb.com
317-920-9601


-----Original Message-----
From: mrtg-bounce at list.ee.ethz.ch [mailto:mrtg-bounce at list.ee.ethz.ch]
On Behalf Of Joseph Pierini
Sent: Wednesday, December 31, 2003 01:50
To: 'avinash phogat'; mrtg at list.ee.ethz.ch
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

user at host 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: <user\@host.com>\n";
        print EMAIL "rcpt to: <dave\@host.com>\n";
        print EMAIL "rcpt to: <bob\@host.com>\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:avinash_phogat at hotmail.com] 
Sent: Tuesday, December 30, 2003 9:58 PM
To: mrtg at list.ee.ethz.ch
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: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

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



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