This article applies to PRTG Network Monitor 12 or later
Acknowledge a Sensor in Down Status Automatically
Using PRTG's built-in API and placeholders, you can set up a HTTP Notification that acknowledges a sensor in "Down" status right away. Please follow the steps in this article.
Step 1: Create a HTTP Notification
In PRTG's web interface, go to Setup | Account Settings | Notification Templates, click on Add new notification, and set up a new notification with the following values:
- Notification Name: "Auto-Acknowledge Sensor Down"
- Add an Execute HTTP Action
- with the following content in the URL field:
http://<your_prtg_server>/api/acknowledgealarm.htm?id=%sensorid&ackmsg=Auto-Acknowledged&username=myusername&passhash=12345678
Please check if your web interface uses http or https and replace <your_prtg_server> by your PRTG server's IP address, and myusername and 12345678 by the values matching a PRTG user account with sufficient rights. You find the passhash in the user account settings. Instead of the passhash you can also use the password. Please see the API documentation for more details.
- Click on Save
You have successfully created a notification that will acknowledge an alarm when triggered by a sensor.
Step 2: Create a Notification Trigger
Choose a sensor you want to set up auto-acknowledging for. On the sensor's detail page, click on the Notification Triggers tab. Click on Add State Trigger and add a notification for a Down condition, the Auto-Acknowledge Sensor Down. Click on Save.
Done.
When this sensor goes into a down state, the notification will be triggered and set the sensor to a "Down (Acknowledged)" status. In the sensor's message "Auto-Acknowledged" will appear.
Note: Please make sure that no Proxy is involved here that could 'redirect' the HTTP request from the PRTG core to something else not PRTG itself.
See Also
Add comment