--On Monday, July 18, 2005 11:21 AM +0200 "\"rueh hänä\"" <[EMAIL PROTECTED]>
wrote:
Any hints to this ? Or is a bash-script based monitor possible, too? How
would this work?
Mon's monitor programs can be any executable format you choose. We have
some that are actually compiled C code. If you're most familiar with shell
scripts, write a shell script. It should behave the way the documentation
says a monitoring program should behave.
The relevant passages from the documentations are:
Monitor processes are invoked with the arguments specified in the
configuration file, appended by the hosts from the applicable host group.
.... should return an exit status of 0 if it completed successfully (found
no problems), or nonzero if a problem was detected. The first line of
output from the monitor script has a special meaning: it is used as a brief
summary of the exact failure which was detected, and is passed to the alert
program. All remaining output is also passed to the alert program, but it
has no required interpretation.
-David
-David Nolan
Network Software Designer
Computing Services
Carnegie Mellon University
_______________________________________________
mon mailing list
mon@linux.kernel.org
http://linux.kernel.org/mailman/listinfo/mon