Monit doesn't check service on startup when "every X cycles" is used

Issue #420 resolved
Vovodroid created an issue

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)

  1. Log in to comment