Forum Discussion
dennypayne
Mar 30, 2009Employee
This would be difficult...you could possibly do this via an external monitor script that calls curl for the test and then uses preconfigured passwordless SSH to connect to the Windows box to execute the batch file. The LTM doesn't really have any clients other than SSH and telnet that it can connect to other devices with, and it doesn't have Expect for interactive scripting. A quick Google search shows a few SSH servers for Windows (running under Cygwin mostly), I'm not aware of any Windows-native capability to handle that though, so you'd have to install something that LTM could connect to on the Windows box.
So, from a practical standpoint, having the LTM actually execute remote commands on a Windows box is not a trivial endeavor. I also would not recommend doing this on a site that had anything more than a light amount of traffic, because the health monitoring could take up a large amount of resources on the LTM itself. You'd be better off doing something similar to what Deb suggested; a script local to the webserver that would restart the service if it didn't get the expected application response.
Denny