--On Wednesday, June 18, 2003 12:02 PM +0100 Aled Treharne <[EMAIL PROTECTED]> wrote:
Hi guys.
I was hoping that someone with a better experience of perl could give me some advice here. :)
We're looking at writing some monitors/alerts tailored specifically to our sites. The problem is that (for political reasons) python is 'preferred' to perl for writing scripts. 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?)? Or does it execute them using perl?
Yes, monitor "scripts" are actually just arbitrary external applications. Mon exec's them. You can use any scripting language you wish, or even write your monitor's in C if you prefer.
My preferred model is that if the actual monitoring application is binary (either written in house, or provided by a vendor (i.e. 'monitorlm' for monitoring Mathematica license servers)), we write a perl wrapper script to format the output from that utility into the correct format for Mon. That way if the monitor-script output format gets changed at some later point, we'll just have to slightly change the wrapper script.
-David Nolan Network Software Developer Computing Services Carnegie Mellon University
_______________________________________________ mon mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/mon
