This post explains how to monitor a multiple services on a list of servers and send alert when the given service is in stopped state. This script will allow you to read a list of servers from the input file and establish connection to all remote
servers to pull service status. Notify users Only when the listed services are not running and send an alert to all intended recipients