On Thu, Feb 08, 2007 at 01:16:51AM +0100, Martin Pala wrote:
>In general, it is possible to use external script for monitoring
>various services which are not supported by monit currently. There is
>nice trick developed by Pavel Urban, see for example:
>http://lists.nongnu.org/archive/html/monit-general/2007-01/msg00008.html
That's a very useful trick. My one complaint with monit now is that
it's not possible to call an external script from monit and check the
return value, although I realize this is already described as a high
priority on the list of planned features for the future. For example,
I'm currently using monit to watch a server pool running a custom
routing daemon running on top of postgis, and would like to be able to
use monit to watch several parts of this complex setup. I've resorted
to writing a series of CGI test scripts and doing something like this:
if failed url http://user:[EMAIL PROTECTED]/script.php and content == "OK"
timeout 30 seconds then alert
This is good enough for me for now, but until that planned feature is
added, may I suggest adding that link to Pavel's message somewhere
under the documentation section of the monit webpages? I'm sure I
wasn't the only one who's needed to do this and went looking there for
suggestions.
Thanks again for this useful program,
Matt
--
[EMAIL PROTECTED] | http://theorem.ca/~mvcorks/
Calvin: I'm not dumb. I just have a command of thoroughly useless
information.
--
To unsubscribe:
http://lists.nongnu.org/mailman/listinfo/monit-general