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 Linux Service based on PRTG alert

Votes:

0

Hello,

We have a HTTP advanced sensor that monitors the URL ( health check). When this health check fails we would like to restart a service. Can this be done using PRTG. It would be great if someone share the info or documentation .

Thanks.

health restart-service unix

Created on Nov 15, 2018 1:30:17 AM



1 Reply

Votes:

0

Hi Sandeepreddy,

Yes, that's possible. Please select the option "Execute Program" for the Notification you're using.

With this option you can execute a script or a program as an external process. It can be a Windows executable file or a BAT, CMD, or PowerShell file. You can use EXE, COM, BAT, CMD, VBS, or PS1 files.

Please find more information within the following link: https://www.paessler.com/manuals/prtg/custom_notifications

I hope this helps. :)


Kind regards,
Andreas Günther
Tech Support, Paessler AG

Created on Nov 15, 2018 12:41:02 PM by  Andreas Günther [Paessler Support]




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.