Enable window services with an Irule

I have an Apache/Resin Web server configuration on 2 machines behind one pool. One of the nodes has the resin web server service turned off which then causes the monitor to fail. We are using priority group activation and if the one member goes offline, no traffic will be sent to the other member.

This may not be a task for an Irule but is there anyway to check whether a windows service is running and if not, enable it before sending traffic?

Not easily from an iRule. I would think you would do better to run a script on the pool member itself to restart the service if/when it dies. You could then use monitors on LTM to know when the pool member is ready to accept requests.

Aaron

Aaron’s right. Interacting with a server to turn services on and off isn’t something you’d do via iRules.

Colin

Detailed write up on windows service monitoring: http://links.f5.com/gqVlUe Click Here

The link is directed to the home page. Is it still valid? I need a solution for Windows 2008 Terminal Services monitor which checks the RDP service itself.

i think it is this one.

Monitoring Windows Services from BIG-IP by Jason Rahm