Hi,

no, the stop-mode monitoring is not implemented

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

/usr/local/bin/test_myproc.sh:
--8<--
#!/bin/bash
exit `ps -ef | grep myproc | grep -v grep | wc -l`
--8<--

and monit configuration:
--8<--
 check program myproc with path "/usr/local/bin/test_myproc.sh"
       if status != 0 then alert
--8<--


Regards,
Martin


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: 
> 
> http://lists.nongnu.org/archive/html/monit-general/2005-08/msg00036.html
> 
> 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:
> https://lists.nongnu.org/mailman/listinfo/monit-general


--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to