script for checking server and services are running or not

Hi guys,

I have a query.
I have two production webmethods servers.I want to achieve load balancing. so what I am thinking is two bifurcate the load on both servers.
But if one server crashes then I want to start all services on other server.

How can I write a script which will be scheduled to check whether the service or not . And if not running then automatically it will start that service in other server.
How can I achieve the above mentioned.