|Subject:||Re: Ping test - success script not executed during startup|
|Date:||Mon, 25 May 2015 09:48:44 -0400|
IF <TEST> THEN ACTION [ELSE IF SUCCEEDED THEN ACTION]
Hope that helps.
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
I’m monitoring a remote host using ping test and here is the configuration,
check host my_instance_xx.xx.xx.xx with address xx.xx.xx.xx
if failed ping
then exec "/root/failure_script.sh"
else if passed 2 cycles
then exec "/root/success_script.sh"
After editing conf file & restarting Monit, though the remote host is available, the success_script.sh is not called.
But I could see failure_script & success_script are called whenever there is a state change (when I poweroff & restart the machine and vice-versa).
Any way to execute the success_script to call during startup?
Monit version: 5.12.1 (tried in 5.13 as well)
|[Prev in Thread]||Current Thread||[Next in Thread]|