[NTLUG:Discuss] need script that sends email message

Michael Patrick michael at techiesplace.com
Wed Nov 28 14:05:43 CST 2001


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




More information about the Discuss mailing list