[NTLUG:Discuss] need script that sends email message

Raymond Norton ray at lctn.k12.mn.us
Wed Nov 28 14:55:55 CST 2001


Thank you


Actually I had looked at the docs for quite a bit, but I only found exact
examples of NT scripts calling a batch file from mrtg. I was not sure what
the equivalent was in Linux. Your response confirms I can launch the mail
command  from the script.


Thanks again

Raymond

----- Original Message -----
From: MadHat <madhat at unspecific.com>
To: <discuss at ntlug.org>
Sent: Wednesday, November 28, 2001 2:53 PM
Subject: Re: [NTLUG:Discuss] need script that sends email message


> At 02:07 PM 11/28/2001 -0600, you wrote:
> >Thank you!
> >
> >I should have explained myself a little better ( I am new to Linux). I am
> >not clear how to call the script, or where to place it. If I'm doing NT,
I
> >would just reference a .bat file that had a Blat statement in it.
> >
> >Are you able to be real specific on syntax, location, etc..??
>
> I recommend reading the MRTG docs and looking at some of the available
> example config files (which there are lots of).
>
> Basically though it would be something like
>
> ThreshMinI[...]: 90%
> ThreshProgI[...]: echo "Network reached 90%!" | mail -s "MRTG WARNING"
> user at domain.com
>
>
>
> >Raymond
> >
> >
> >----- Original Message -----
> >From: Michael Patrick <michael at techiesplace.com>
> >To: <discuss at ntlug.org>
> >Sent: Wednesday, November 28, 2001 2:05 PM
> >Subject: Re: [NTLUG:Discuss] need script that sends email message
> >
> >
> > > Hi Raymond.
> > >
> > > I would think something like this should work:
> > >
> > >
> > > echo "Network has died!" | mail -s "MRTG WARNING" user at domain.com
> > >
> > > Michael
> > >
> > >
> > > On Wed, Nov 28, 2001 at 12:18:41PM -0600, Raymond Norton wrote:
> > > > I am setting up our MRTG configs to use the Threshold feature, and
send
> >out
> > > > an automated email when traffic reaches 0%. I understand how to make
the
> > > > additions to my configs, but I am at a loss how to write a script
that
> >can
> > > > be called by MRTG which will send the email when the threshold is
> >reached.
> > > >
> > > > I am using RedHat 7.1 and Sendmail 8.11.6
> > > >
> > > > Can anyone help me with this?
> > > >
> > > >
> > > > Raymond
> > > >
> > > >
> > > >
> > > > _______________________________________________
> > > > http://www.ntlug.org/mailman/listinfo/discuss
> > >
> > > _______________________________________________
> > > http://www.ntlug.org/mailman/listinfo/discuss
> > >
> >
> >
> >_______________________________________________
> >http://www.ntlug.org/mailman/listinfo/discuss
>
> --
> MadHat at unspecific.com
>
>
> _______________________________________________
> http://www.ntlug.org/mailman/listinfo/discuss
>





More information about the Discuss mailing list