|Subject:||Re: Ignore Monit's First Alert|
|Date:||Tue, 19 Sep 2017 10:03:08 +0200|
You can try this:
check host somehost with address somehost.com
start program = "/opt/monit/scripts/somehostcheckport.sh start"
stop program = "/opt/monit/scripts/somehostport.sh stop"
if failed port 80 for 5 cycles then restart # note: will restart the service if down for 5 consecutive cycles, the alert is implicit (send as part of the restart)
alert address@hidden with reminder on 5 cycles
|[Prev in Thread]||Current Thread||[Next in Thread]|