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

Running different scripts on sensor error and after exiting the error



Hi. Please tell me if it is possible to use two script files in notifications of one sensor. Example: Sensor server123 is offline when the notification starts the script error.ps1. Sensor server123 online script runs online.ps1

notification prtg script

Created on Oct 26, 2021 12:34:08 PM

1 Reply




a state trigger allows you to use a different template when a sensor no longer has the triggering status. But in this case, it would be better to use two different triggers, one for down, one for up, each using a different notification template which defines a different script to run.

Created on Oct 26, 2021 6:32:43 PM by  Arne Seifert [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.