|
From: | Martin Pala |
Subject: | Re: How to monitor service start/restart/stop? |
Date: | Thu, 27 May 2004 19:12:30 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
You can add also the call to your logger directly to start/stop program script related to monitored service. Monit provides another information in environment variables to to the executed program.
Martin Stanley Lee wrote:
I need to log a message with my application logger whenever a monitored service starts, stops, crahses orrestarts.Is it possible to do so using the Monit's IF <TEST>THEN EXEC option or any other way? So far I'm not successful since the TEST options doesn't include testing for a service start, stop,crash or restart situation. Thanks for your help in advance, Regards, Stan Lee
[Prev in Thread] | Current Thread | [Next in Thread] |