On Oct 15, 2013, at 3:05 PM, "Jorge Bastos" <[email protected]> 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).
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general