monit-general
[Top][All Lists]
Advanced

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

Re: Question about restart/stop


From: Martin Pala
Subject: Re: Question about restart/stop
Date: Tue, 15 Oct 2013 15:54:47 +0200

On Oct 15, 2013, at 3:05 PM, "Jorge Bastos" <address@hidden> wrote:

>>> if failed port 143 protocol imap with timeout 20 seconds within 1
>> cycles then stop
>>> 
>>> but monit it self stop's, is this normal?!
>> 
>> The "if failed port 143 protocol imap with timeout 20 seconds within 1
>> cycles then stop" will stop the service and disable its monitoring -
>> Monit itself should continue (the "stop" action is only for the service
>> in which context is defined).
>> 
>> You can enable the monitoring again using either "monit monitor
>> <servicename>" or "monit start <servicename>".
> 
> Monit stop's running that's what I find odd.
> 
> Allow me to ask, can I use restart instead of stop, and since I don't have a
> "start program" defined, it won't do nothing for start, right?


You can run monit in foreground and enable debug mode:

        monit -vI

Regarding the restart - if the start or stop program is missing and the 
monitored service is process ("check process"), then the restart is not 
performed at all (even stop is skipped).




reply via email to

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