--On Thursday, September 08, 2005 10:59 AM -0400 Allan Wind
<[EMAIL PROTECTED]> wrote:
On 2005-09-08T16:07:16+0200, Graf László wrote:
I am using a shell script wich runs in the background. How should I
configure mon to alert me if the process hangs up or fail in
operations?
If you mean process dying with "hangs up" then you could use the
ps.monitor that is in contrib. If you mean stop working as expected or
hangs then it is a unresolved problem in general, and you need to look
into making decisions based on timeouts. For instance have your script
touch a file then write a monitor to alert if you if that file is too
old. Should you mean a signal perhaps you want to trap that?
/Allan
In addition to Allan's suggestions I would also suggest looking into Mon
traps. If your long lived process runs a program that generates a Mon trap
every X period of time (1 minute, 10 seconds, whatever...) then you could
have a trap timeout in Mon to detect when it stopped generating traps.
-David
David Nolan <*> [EMAIL PROTECTED]
curses: May you be forced to grep the termcap of an unclean yacc while
a herd of rogue emacs fsck your troff and vgrind your pathalias!
_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon