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.


Article Comments

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