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 good. 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: http://nongnu.13855.n7.nabble.com/Connection-monitoring-bug-tp182021.html Sent from the monit-general mailing list archive at Nabble.com. -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
