Re: Q: How to hook a "page" program to tkined events?

Juergen Schoenwaelder (schoenw@ibr.cs.tu-bs.de)
Sat, 10 Jun 1995 17:15:14 +0200

Hi!

"hagge" <hagge@ccmail.avery.com> said:

hagge> I've written a little quick & dirty shell script to send
hagge> and alpha page to a Skytel pager. Is there a way to
hagge> hook it into tkined so that tkined calls it with a
hagge> suitable text message when certain "events" occur
hagge> (specifically, unreachable nodes or other events which
hagge> cause node flashing to occur)?

hagge> If this is not trivial, can someone point me to which
hagge> source file I should be mucking around with?

There is currently no real support for things like this. The best way
to do this is to look into the monitoring scripts (ip_monitor.tcl and
snmp_monitor.tcl). You should search for words like unreachable and
add a line of Tcl code to call your pager. The threshold checking code
can be found in library.tcl (see proc MoJoCheckThreshold).

Juergen