What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

restart service in a time window

Votes:

0

I want to restart a service in a time window (between 05:00 and 18:00) outside this time window only a notification e-mail. Is this possible in PRTG?

prtg sensor wmi-sensors

Created on Aug 16, 2016 6:55:14 AM



2 Replies

Votes:

0

It is possible by setting up two notifications. One that sends only Email, another one as "Execute Program" notification utilizing "ServiceRestart" executable from here. Configure schedules for each notification and apply them accordingly so that only the desired one is active in the respective period. Make sure to configure triggers for both notifications in "Notifications" tab for the sensor in question.

Also make sure to NOT use the "restart service" option inside the WMI Service sensor, since this option can either be active or not, but it cannot be bound to only work in specific timeframes. Restarting is then taken care of by the aforementioned notification that restarts the service then.

Kind regards.

Created on Aug 16, 2016 9:07:21 AM by  Erhard Mikulik [Paessler Support]



Votes:

0

Thanks, works perfect

Created on Aug 17, 2016 7:24:04 AM




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.