Re: [tkined] Mail notification

Doug Hughes (Doug.Hughes@Eng.Auburn.EDU)
Mon, 17 Nov 1997 09:12:52 -0600

>
>Hello,
>
>I have installed Tkined in a DEC Unix 4.0b and it works ok.
>Now I would like to receive mail a notificaton when a node goes down.
>Is it possible? How?
>Thanks in advance for any help.
>Best regards,
>

I do it very simply by modifying the ip_monitor app.

e.g.
edit $tnm(library)/../tkined1.4.5/apps/ip_monitor.tcl
search for "if {$rtt < 0} {
add (inside the if statement)
exec echo "[ined name $id] is down - [exec date]" | /usr/ucb/mail -s \
"host [ined name $id] is down" mjb

--
____________________________________________________________________________
Doug Hughes					Engineering Network Services
System/Net Admin  				Auburn University
			doug@eng.auburn.edu

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.