You can try adding a larger timeout to the port statement. If your service takes 40 seconds to restart, you can give a timeout like 50 secs:
if failed host localhost port 8080 with proto http with timeout 50 seconds then restart On Thu, Feb 7, 2013 at 3:10 AM, Stefan Catargiu <[email protected]>wrote: > Hello, > > > Is there a possibility to skip some monitoring cycles after a process is > restarted? > I know that for slow starting processes I can use a "every x cycles" > statement, but that's not really what I want, because that means the checks > will get further apart. > > What I am looking for is something like, "if failed host localhost port > 8080 with proto http then restart", but after this restart, because the > process takes a long time to be responsive again, I would like monit to > skip it a number of seconds or an x number of cycles. > Is something like this possible? > > Thanks! > > Regards, > Stefan > > -- > To unsubscribe: > https://lists.nongnu.org/mailman/listinfo/monit-general >
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
