I have a server that runs 11 services that all need to be up as a whole, but when down, they need to be started in a particular order. Because of this particular order, they are set to manual, but that means that after a maintenance reboot at night, all services need to be started in the correct order after the restart. For the correct order, we have a CMD file that I would like PRTG to run (not the server itself) whenever the Business Process sensor I created shows that there are more than one services down. I don't want the service monitor sensors restart the services individually, because of the required order and I don't want the command file executed if only one service is down. How can I make this possible?


Article Comments

When you create the WMI Service sensor, you can set the settings to do nothing if the service stops running.

Then for the Business Process sensor, please see this kb article for how the status is calculated.

https://helpdesk.paessler.com/en/support/solutions/articles/76000063497-how-does-the-business-process-sensor-calculate-summarized-sensor-states


Oct, 2017 - Permalink

I got that Business Sensor covered already to my liking, but when it turns to Red, how can I make PRTG execute that script?


Oct, 2017 - Permalink

Go to Setup -> Account Settings -> Notifications.

You'll need to create a new notification that does the Execute a Program action.

Once you have that notification created, we need to bind it to a trigger.

Go to the Business Process Sensor, click on Notifications, Add a new State Trigger, put in the time limits you want, select the Notification you created in the drop down, and click save.

Check out this video we have on Notifications.

https://www.paessler.com/support/videos/prtg-basics/notifications


Oct, 2017 - Permalink