monit-general
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't get EXEC/START/STOP to work


From: Andreas Oesterer
Subject: Can't get EXEC/START/STOP to work
Date: Tue, 27 Sep 2005 12:09:38 -0700

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.
 
These are the two variations that I tried:
 
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
 
 
Thanks, Andreas

reply via email to

[Prev in Thread] Current Thread [Next in Thread]