On Wed, 18 Jun 2003, Aled Treharne wrote:

> Simply put then, does mon call
> the monitor/alert scripts as 'external applications' (i.e. if I write a
> shell script/python app will it execute it?)?

yes. the details about how a monitor is invoked and what the mon server
expects from it can be found in the man page for mon under the "monitor
programs" heading. you will also find that the monitors distributed with
mon are written in various languages, and can serve as good examples
if you are learning to write your own monitor. some are better examples
than others :)

depending on the application, it may be a good plan for the monitor
to parallelize its checking. for example, the fping.monitor script
accepts a number of hosts on the command line, and rather than pinging
them serially, on after the next, it asynchronously sends out the ping
requests and collects the replies as they arrive. the phttp.monitor
operates similarly.

the advantage to this parallelization is that enables your monitoring to
perform better when you are monitoring a large number of systems. mon
itself schedules multiple monitors in parallel, and it is the
responsibility of monitors to perform their own parallelization if
necessary.

_______________________________________________
mon mailing list
[EMAIL PROTECTED]
http://linux.kernel.org/mailman/listinfo/mon

Reply via email to