[mrtg] Re: threshold
Joseph Pierini
joep at mmlive.com
Wed Dec 31 07:49:41 MET 2003
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
More information about the mrtg
mailing list