[Top][All Lists]

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

Connection monitoring bug?

From: hzwaal
Subject: Connection monitoring bug?
Date: Tue, 15 Apr 2014 03:13:00 -0700 (PDT)

I'm monitoring the liveness of one of my processes through its HTTP
connection. I have the following relevant settings:

set daemon 2 # check every 2 seconds (a short period is required in my case)

check process soandso with pidfile /such/and/such
  start program = ...
  stop program = ...
  if failed url http://localhost/ping
    with timeout 5 seconds for 5 cycles
    then restart

Now, when my process gets stuck (it shouldn't, but I'm simulating this, just
in case) it will be restarted. This occurs 5 second after the 5th poll,
which is when it is not responding for 13 seconds (4 * 2 + 5). So far so

However, when my process is not back online within 2 seconds, it will be
restarted again, and again, ad infinitum. This seems like a bug to me. IMHO
it should reset the cycle count on a restart. Or am I missing something and
is there another way to get rid of this situation (without increasing the
poll period).

Thanks, Hugo. 

View this message in context:
Sent from the monit-general mailing list archive at

reply via email to

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