Basically for the Sitecore commerece a window service is running the minion service.
Service Recovery Setting
Windows services provides an option to decide what to do when the service fails. It can restart the service, run another program or restart the machine itself.
The recovery settings can be set to restart the service on 1st and 2nd failure and any subsequent fails will trigger a script which can perform any preferred actions:
- Send email / SMS
- Call a service
- Send a slack message Etc.
Bash script monitoring the service
There are several ways to monitor multiple services and provides some visualization on that as well as perform some action based on the state of the service.
With PowerShell we can get the list of services we want and check their status in an interval and either output it or perform an action. The following blog has a sample script which can help with this approach.
https://gallery.technet.microsoft.com/scriptcenter/Monitor-Report-5d1998d4
There are many commercial or free external tools which provides monitoring on Windows services as well.