[mrtg] Re: Email Notification
Anton Sparrius
asparrius at vivanet.com.au
Wed Oct 4 04:30:41 MEST 2000
For Linux, I use the following :
In the normal config file add the following line (this is just for Input
Threshold. You can also add Output, and other options, but to keep it
simple)
ThreshMaxI[melb]: 675
ThreshProgI[melb]: /etc/mrtg/run/email_thresh
(Replace the path to where ever you put the script)
The script consist of
#!/bin/sh
echo -e "Device : $1\\nThreshold Value : $2\\nCurrent Value :
$3\\nDate/Time : `date`\\n" | mail -s "THRESHOLD ALERT : '$1' Passed
$2 Threshold" info at yourisp.com
You can change the Subject line and body to whatever you like. From memory
the variables ($1, $2 etc) are listed in the docs/faq under Threshold.
Hope that helps.
Regards,
Anton
> -----Original Message-----
> From: Moore, Kevin - 8th - ITSD [mailto:MooreK2 at idhw.state.id.us]
> Sent: Wednesday, 4 October 2000 3:41 AM
> To: 'mrtg at list.ee.ethz.ch'
> Subject: [mrtg] Email Notification
>
>
>
> I have been using MRTG for six months and have found the documentation
> to be
> very helpful. I am having a problem that I can not seem to find an
> answer
> to and that is the specific, step by step instructions on using the
> Threshold settings to trigger an email. Does anybody have a simple
> script
> with setup instructions to accomplish this?
>
> Thanks for your help,
>
> Kevin Moore
> Network Analyst
> State of Idaho, Department of Health and Welfare
>
> --
> 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