hey now
I have an action for running a batch file as an external program when a test for a remote web service fails. The batch file restarts w3svc (among other things) on the remote machine - this takes about 15-30sec or so.
I'm wondering how HM handles the "untill status changes" option for this. I mean, does HM fire off another batch file when the previous one closes or is there some wait before it runs it again (for example, the next check interval)?
I think the remote box is in the process of starting but HM still thinks it's down and runs it again.
thanks for the help muchachos1
"untill status changes" option and external program
>I mean, does HM fire off another batch file when the previous one closes or is there some wait before it runs it again (for example, the next check interval)?
"Repeat: until status changes" does not mean HostMonitor will start action every second. It means HostMonitor will start action every time test returns "Bad" status (or "Good" status if you use "Good" action). So, if HostMonitor checks your web server every 5 min, it will not start bat file more often than every 5 minutes.
>I think the remote box is in the process of starting but HM still thinks it's down and runs it again.
Probably you use too small interval between tests. Set it to 1 or 2 min. BTW HostMonitor can use different time intervals for the same test. See "Change test interval" action.
Regards
Alex
"Repeat: until status changes" does not mean HostMonitor will start action every second. It means HostMonitor will start action every time test returns "Bad" status (or "Good" status if you use "Good" action). So, if HostMonitor checks your web server every 5 min, it will not start bat file more often than every 5 minutes.
>I think the remote box is in the process of starting but HM still thinks it's down and runs it again.
Probably you use too small interval between tests. Set it to 1 or 2 min. BTW HostMonitor can use different time intervals for the same test. See "Change test interval" action.
Regards
Alex