[Top][All Lists]

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

Re: Mode stop

From: Martin Pala
Subject: Re: Mode stop
Date: Thu, 17 May 2012 22:52:33 +0200


no, the stop-mode monitoring is not implemented

The workaround could be simple script integrated with Monit via the "check 
program", something like:

exit `ps -ef | grep myproc | grep -v grep | wc -l`

and monit configuration:
 check program myproc with path "/usr/local/bin/"
       if status != 0 then alert


On May 16, 2012, at 6:08 PM, Jon Bonilla (Manwe) wrote:

> Hi all
> This is my forst mail to the list. I've tried to search if my question was
> already placed and I found this: 
> Is this implemented somehow? I need to be sure that a service is stopped until
> I want it to be started.
> If I have a service in manual mode and I exec "monit stop foo" it will stop 
> but
> it can be started by an upgrade or by hand afterwards and the service will be
> unmonitored. I'd like to be sure that the service is being monitored and will
> be stopped by monit because its status is stoped.
> Same as with active at the moment.
> cheers,
> Jon
> --
> To unsubscribe:

reply via email to

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