[Top][All Lists]

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

Re: Monit and laptops

From: Lutz Mader
Subject: Re: Monit and laptops
Date: Sun, 11 Oct 2020 19:56:59 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

this is a typo only.

> Thanks for this snippet. I noticed you listed two separate hosts (macbook.and 
> macbookpro.local).

I use the local macbook host name to bind to and check this name.

> check host Monit with address macbookpro.local
>   start program "/usr/local/bin/monit reload"
>   if failed port 2812 with protocol https username "guest" password
>      and request "/_ping" with status >= 200
>      with ssl options {verify: disable, selfsigned: allow}
>      with timeout 30 seconds for 3 cycles then start
>   if 3 restarts within 10 cycles then unmonitor

The check run every cycle and try to login to the monitor, if the logon
failed tree times the start command will executed.
If the Monit monitoring will be stopped it never started again. In
general the logon succeded after the start (the monit reload) command.
But I try to prevent useless/endless recovery after a give time, this is
the reason I disable the check themselfe.

> Sorry if this seems like very basic questions.

The question is reasonable, I use "start" only, the "restart" check does
not work (perhaps). I will check this, I find "start" requests only but
no "unmonitor" request in the log files. On the other hand, after the
first "monit reload" the monitor will response all the time.

With regards,

reply via email to

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