Re: Event notification via a pager or writing to a file.

Dave Curado (davec@ziplink.net)
Wed, 9 Apr 1997 23:10:15 -0400 (EDT)

> Has anyone integrated pager notifications with tkined? As well as
> receiving a flash'ing icon, or receiving writes to the screen, or
> syslog entries, I want to receive pager notifications.

It's pretty easy to do the paging. Look in ip_monitor.tcl for
the part where it "flashes" the icon, and add an exec line
that sends a page. The only problem with this is that it is
not exactly elegant -- and if you send too many pages it tends
to kill the ip_monitor tool completely.

ined flash $id [expr {[[job current] cget -interval] / 1000}]
ined -noupdate attribute $id \
"round trip time" "[ined name $id]\nunreachable"
ined -noupdate label $id "round trip time"
MoJoAction $id "[ined name $id] \[$ip\] unreachable"
## add these lines
set pagername [ined name $id]
catch { exec /usr/local/paging/queue_page "$pagername is down" }

--
!! 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.