monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[monit-dev] exec for service test


From: Larry Brigman
Subject: [monit-dev] exec for service test
Date: Tue, 31 Aug 2010 09:13:40 -0700

I have run across a case where the existing network tests don't work
and would like to use exec as the test probe returning
success or failure.

The case is a process that is an XML service processor but we don't
know which port it will be on until it is configured.
The request is sent as XML in the header and the response
is sent back in the body.
Since the XML response can have multiple possibilities of both success
and failure depending on the deployment
the send/expect doesn't work very well.

We already have some python scripts that provide a test of the port
but we want to do an active monitor
with start stop actions like monit.

What would be the easiest way to get exec "script" into the DSL?

BTW, I like the method of allowing a service without a pid file.  This
service does not have one.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]