|
From: | Srinivasan Thandapani |
Subject: | Ping test - success script not executed during startup |
Date: | Mon, 25 May 2015 10:56:44 +0000 |
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 |
[Prev in Thread] | Current Thread | [Next in Thread] |