So I'm looking for a way to check our remote Windows servers and verify that specific services are running using PRTG. If those services aren't already running, I'd like the sensor to automatically attempt to restart them. I'd like to receive an email notification just as we do with our other PRTG sensor alarms if the service is restarted or fails to restart. I've seen the script here: https://helpdesk.paessler.com/en/support/solutions/articles/13803-how-to-monitor-multiple-windows-services-in-1-sensor that seems to do most of this, but if I'm understanding correctly, it doesn't appear to email and I'm not sure how to go about adding it or if there's a better way to do this given the improvements to PRTG since 2011.
Monitor Windows Services and Receive Email Notifications
Modified on 2025-06-10 13:06:20 +0200
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Hello,
The script of the linked article will return "1", if the service could not properly restart the service. You can enter the channel settings and enter "1" for the upper error limit.
You can now add a state trigger to the sensor in PRTG which sends a notification as soon as the alert occurs. You can use the placeholder %lastmessage to display which service failed.
Best regards
Jun, 2015 - Permalink