Hi,
I have following check:
check program script with path "/path/to/check_script" as uid "user" and gid "user"start program = "/path/to/script start" as uid "user" and gid "user"
stop program = "/path/to/script stop" as uid "user" and gid "user"
if 2 restarts within 10 cycles then alert
if status != 0 then restart
What happens: every time check fails, I receive failure email, then two minutes later I receive success email.
Two questions:
- Why success email arrives two minutes after failure? start/stop programs are pretty quick and execution time take few seconds.
- Is there a way to configure monit not to alert me unless 2 restarts happen within 10 cycles and status is still not zero?
Thanks.
