Re: Sending Email...

Doug Hughes (Doug.Hughes@Eng.Auburn.EDU)
Thu, 11 Apr 1996 17:07:46 -0500

>
>Can anyone tell me how I can setup tkined to send an email as
>soon as a host becomes unreachable?
>
>TIA.
>
>

One quick and dirty way that I've done is to modify ip_monitor.tcl

proc reachability is where you want to add your mail line

You 'if {$rtt < 0} {

right after ined -noupdate color $id red I added this line:

exec echo "[ined name $id] is down - [exec date]" | /usr/ucb
/mail -s "host [ined name $id] is down" admin,doug

--
____________________________________________________________________________
Doug Hughes					Engineering Network Services
System/Net Admin  				Auburn University
			doug@eng.auburn.edu
		Pro is to Con as progress is to congress