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

How to auto-acknowledge a down sensor in PRTG

Votes:

0

We have set up certain sensors that shall be auto-acknowledged in case they're down. For example, this is for some websites like google.com we monitor for information purposes only but we do not have influence on anyway.

So, in case they're down we want them to auto-acknowledge so that these sensors are not shown as "Down", but as "Down (Acknowledged)" right away.

How can we achieve this?

alarm auto-acknowledge custom-notification howto notifications prtg

Created on Jun 22, 2010 2:05:22 PM by  Daniel Zobel [Product Manager]

Last change on Aug 12, 2010 8:16:06 AM by  Daniel Zobel [Product Manager]



17 Replies

Accepted Answer

Votes:

1

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

Created on Jun 22, 2010 2:29:13 PM by  Daniel Zobel [Product Manager]

Last change on May 7, 2019 10:32:19 AM by  Brandy Greger [Paessler Support]



Votes:

0

Hello.

I tested this notice and not working.

Enter the URL in the browser and I get an error http 400

I simply replaced the ip of the server, the number of sensor and the user.

What am I doing wrong?

Thanks

Created on Aug 10, 2011 10:59:37 AM



Votes:

0

Hello, have you checked if your PRTG web interface uses http or https?

Created on Aug 10, 2011 11:36:10 AM by  Torsten Lindner [Paessler Support]



Votes:

0

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

Created on Feb 16, 2012 12:55:27 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Auto-Acknowledge Setting for Ping Sensor

As of PRTG version 9, the Ping sensor has an option to automatically acknowledge alarms.

For more information, please see PRTG Manual: Ping Sensor (search for "Auto Acknowledge")

Created on Mar 28, 2012 7:51:20 AM by  Daniel Zobel [Product Manager]

Last change on Aug 13, 2014 4:00:07 PM by  Gerald Schoch [Paessler Support]



Votes:

0

This still works in PRTG 12. I've Just set it up and got it running. I have a whole bunch of devices that people turn-off at night is the best solution. (pausing them at night robs us of too much data)

Created on Dec 13, 2012 6:11:56 AM



Votes:

0

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

-> Is there a way to work with that auto-acknow. if I am using a proxy with user-auth. ?

Created on Apr 8, 2014 3:28:39 PM



Votes:

0

Afraid not, sorry.

Created on Apr 10, 2014 1:26:19 PM by  Patrick Hutter [Paessler Support] (7,225) 3 3



Votes:

0

Hi, I'm using PRTG version 13. I have a HTTP sensor and have tried following the instructions given above:

Choose a sensor you want to set up auto-acknowledging for. On the sensor's detail page, click on the Notifications tab. Click on Add State trigger and add a notification for a Down Condition and with the On Notification "Auto-Acknowledge Sensor Down". Click on Save.

I do not have an option for "Auto-Acknowledge Sensor Down", all I can see are a list of the notification groups we have set up ourselves.

Any guidance would be appreciated.

Thanks

Created on Jun 5, 2014 8:13:53 AM



Votes:

0

Dear Emma

Before you can use a HTTP transaction to autoacknowledge a sensor, please create the HTTP URL as described in step 1.

This URL needs to be entered in the respective notification to perform the API call to acknowledge. Beside "ping", sensor settings have no build-in option for autoacknowledge, that is why the HTTP URL for the API call needs to be created first.

Created on Jun 5, 2014 2:42:56 PM by  Arne Seifert [Paessler Support]



Votes:

0

Hello Paessler Team,

I must ask this :) we have the situation, that we have 2 Windows Machines which work as a manual active/standby Cluster the respective Service is only on one machine at a time active.

We check via SNMP the state of the Sensor. On One Machine it is obiously not available so we have an Error.

Therefor I would like to auto ack this. Unfortunately we have a Proxy Environment to everything outside our Domain. I tried now several requests in the http action notification:

https://host.domain/api/acknowledgealarm.htm?id=%sensorid&ackmsg=Auto-Acknowledged&username=user&passhash=123 https://host/api/acknowledgealarm.htm?id=%sensorid&ackmsg=Auto-Acknowledged&username=user&passhash=123 https://IP-address/api/acknowledgealarm.htm?id=%sensorid&ackmsg=Auto-Acknowledged&username=user&passhash=123 https://localhost/api/acknowledgealarm.htm?id=%sensorid&ackmsg=Auto-Acknowledged&username=user&passhash=123 https://127.0.0.1/api/acknowledgealarm.htm?id=%sensorid&ackmsg=Auto-Acknowledged&username=user&passhash=123

so it thems that it does not work, If I enter the API Calls via a Browser it is working like a charm. since a Proxy is mandatory between the domain network and the internet it is no solution to disable it on the core. Also the Proxy definition via our Proxy.pac say that local destinations should not go via our Proxy. Unfortunately it seems that they go towards the proxy :(

is there any other way to do this?

Created on Mar 15, 2017 12:19:50 PM



Votes:

0

Dear Michele

If you have troubles circumventing the proxy, the only solution would be to call a program instead, like a powershell script, which then invokes the HTTP action.

Please note that this solution is overall so complex that we don't recommend it.

Created on Mar 15, 2017 4:00:21 PM by  Arne Seifert [Paessler Support]



Votes:

1

Hello again,

PowerShell Script was also my last point of hope and yeah it was not as complicated as expected. I could share it here of course

just need to change the User and the passhash with your credentials at the URI build part

##
# params
# Sensorid via PRTG variable: %sensorid
# AckMessage to Display in Sensor Last Message field
##
param
(    
    [string]$SensorID,
    [string]$AckMessage
)

##
# Bypass Cert Issue
# This is not coded by me, please find the source below
# Source: http://grumpyneteng.com/powershell-httpsssl-and-self-signed-certificates/
##
Add-Type @"
    using System;
    using System.Net;
    using System.Net.Security;
    using System.Security.Cryptography.X509Certificates;
    public class ServerCertificateValidationCallback
    {
        public static void Ignore()
        {
            ServicePointManager.ServerCertificateValidationCallback += 
                delegate
                (
                    Object obj, 
                    X509Certificate certificate, 
                    X509Chain chain, 
                    SslPolicyErrors errors
                )
                {
                    return true;
                };
        }
    }
"@
[ServerCertificateValidationCallback]::Ignore();

##
# Build URI variable String with Param
##
$URI="https://127.0.0.1/api/acknowledgealarm.htm?id=$SensorID&ackmsg=$AckMessage&username=<APIUserA>&passhash=<PASSHASH>"

##
# enter PRTG API call to Auto-Ack the down sensor
##
Invoke-RestMethod -Method GET -Uri $URI

afterwards just add a Execute Program notification with this program file and as parameters %sensorid YourAckMessage

Created on Mar 16, 2017 6:16:35 AM



Votes:

0

is it possible to autoacknowledge an Sensor for x minutes with that API call?

Created on Apr 26, 2017 1:08:18 PM



Votes:

0

Dear Michel

You can acknowledge a sensor with a API call, but not auto-acknowledge it:

/api/acknowledgealarm.htm?id=<id>&ackmsg=Message&duration=15

An option would be to run such API call as HTTP action as part of a notification, meaning as sensor will (always) acknowledge itself.

Created on Apr 26, 2017 5:28:54 PM by  Arne Seifert [Paessler Support]



Votes:

0

I've had the "Auto-Acknowledge Sensor Down" HTTP Notification working for quite some time but it seems to have broken with the 22.3.78.1873. Nothing has changed besides the PRGT version. I've tried HTTP and HTTPS and confirmed PRTG username and passhash are correct.

Here's the log:

Failed to establish secure connection [Step 0] Socket Error # 10061 Connection refused. [Step 1] Socket Error # 10061 Connection refused. [Step 2] Socket Error # 10061 Connection refused. [Step 3] Socket Error # 10061 Connection refused. [Step 4] Socket Error # 10061 Connection refused. [Step 5] Socket Error # 10061 Connection refused. [Unsecure] IOHandler value is not valid

Created on Sep 9, 2022 4:51:43 PM



Votes:

0

Hello Dave,

which log exactly is that? I ask because there are multiple components in PRTG which could show such output.

Also, does the API call work if you perform in manually (like, in a browser) or is there no effect, either?

Created on Sep 12, 2022 11:35:56 AM 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.