Hi Team,
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?
PS:
Monit version: 5.12.1 (tried in 5.13 as well)
Regards,
Srini
"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."
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general