Service status and email if down (as well as try to start it)

Version 1

    Here is a script I sorta came up with that checks common vmware services and then emails if any one of them aren't running (and trys to start them)(since our vsphere upgrade bombed a few times thanks to sql i was asked to try to write this), I am sure this has been done before and bits where taking from another place that I can't find again to give credit, so its not all mine, but somone might find this usefull, write back with questions or comments