- changed title to Monit doesn't check service on startup when "every X cycles" is used
- marked as proposal
Monit doesn't check service on startup when "every X cycles" is used
Issue #420
resolved
Config:
set daemon 60
check host example.com address 127.0.0.1
every 10 cycles
start = "/usr/bin/docker start example.com"
stop = "/usr/bin/docker kill example.com"
if failed host example.com port 443 protocol https for 1 cycles then restart
Result:
[UTC Jul 16 10:59:32] info : M/Monit heartbeat started
[UTC Jul 16 11:08:32] error : 'example.com' failed protocol test [HTTP] at [winguzone.com]:443 [TCP/IP SSL] -- Connection refused
First service check occurs after 9 minutes after monit startup (by a way, why 9, and not 10?). So it can take much time after reboot to launch services. I suggest that service checking cycle should start immediately on monit start.
Regards.
Comments (3)
-
repo owner -
repo owner - changed status to resolved
Fixed: Issue
#420: Monit doesn't check service on startup when "every X cycles" is used.→ <<cset 3afe8ba7b46e>>
-
repo owner - changed version to 5.18.0
- Log in to comment