Is it possible to script a sensor pause after an alert triggers?
Modified on 2025-06-10 13:51:52 +0200
Attention: This article is a record of a conversation with the Paessler support team. The information in this conversation is not updated to preserve the historical record. As a result, some of the information or recommendations in this conversation might be out of date.
Important: We no longer maintain this article. The information might be out of date.
I have been able to setup PRTG to run a powershell script when a particular sensor triggers as "down" for a certain period.
However, after the script runs, it takes about 20 minutes before the system is "ready".
Is it possible to script the sensor (or better yet the parent device) to pause for X minutes after the powershell script runs?
I need for it to not go into a loop that keeps detecting a "down" state and running the powershell script over and over.
Thanks
Article Comments
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.
You can use/create a http notification where you pause the object via an api call - please have a look at the API documentation -> Setup -> PRTG API -> Object manipulation and use this notification in a state trigger on the respective sensor. Please have a look at http://www0.paessler.com/en/topic/2803-automatically-pause-a-down-sensor
Mar, 2014 - Permalink