Hello,
Everyday we got an "non-exist" then "exist" alert when the process is shutdown then started for log rotation purpose.
We would like to NOT receive the email linked to this kind of behavior but still get the email when the process is really down for some time.
We would like something like
check process myprocess with pidfile /var/run/myprocesspid.pid
start program = "/usr/sbin/service myprocess start"
stop program = "/usr/sbin/service myprocess stop"
if failed port 5555 protocol tcp for 3 cycles then restart
if 5 restarts within 5 cycles then timeout
wanted -> alert on {exist, non-exist} only if 5 event in 5 cycles.
can be interpreted as -> only send alert for event 'exist' and event 'non-exist' if alert is triggerred 5 time in the last 5 cycles