I tried to get my scripts to execute with the START or EXEC options but the script does not seem to be executed. I get the alert email and it should not be a permissions issue.
I'm using monit-4.6-beta1 plus the events.c and util.c cycle bug fixes.
check host AD.206 with address
192.168.0.3 if failed port 8081 protocol http and request "/index.jsp" with timeout 5 seconds for 2 times within 2 cycles then EXEC "/../suspend 206"
else if passed for 2 cycles then EXEC "/../resume 206"
check host AD.206 with address
192.168.0.3 start program = "/../resume 206"
stop program = "/../suspend 206"
if failed port 8081 protocol http and request "/index.jsp" with timeout 5 seconds for 2 times within 2 cycles then stop
else if passed for 2 cycles then start