[mrtg] Re: Sending mail...

Takumi Kadode taku_k at pb3.so-net.ne.jp
Tue Apr 24 12:45:50 MEST 2001


Julien,

You will be able to send e-mail if you put the "mailx"or
"mail" command in sendmail.bat .  For example, following
example allow you to send e-mail to foo at bar.com.
(NOTE: don't forget adding execution permission to the file)

-----------------------------------------------------
#! /bin/ksh

T=`date`
echo "MRTG threshold test" ${T} | mailx foo at bar.com
-----------------------------------------------------

Thanks,
---
Takumi Kadode

At 11:55 01/04/24 +0100, Julien Borne wrote:

>Hulo!
>
>What kind of script (ksh) can I make so as to send mail (under Solaris
>2.6) using the threshold command?
>I mean I tell MRTG:
>ThreshMaxO[_]: 20000 (just a test)
>ThreshProgO[_]: sendmail.bat (test again)
>
>So what do I have to put in the sendmail.bat?
>I tried with mail someone at somewhere, in fact everything is ok when I do
>it manually on the shell, but I don't know how to do it automatically.
>Well, getting less clear, I think I'll just go eat something and then
>get back onb this ;-P
>
>Thanks
>
>Julien
>
>
>--
>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