What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Get through rest api the Identification Token

Votes:

0

Your Vote:

Up

Down

I use this REST API to get all sensors/probes from a device

wget - "http://<server>/api/table.json?content=sensor&filter_parentid=<an id>"

The content is like

"sensor": [ { "group": "UAT", "group_raw": "UAT", "device": "not google.com", "device_raw": "not google.com", "sensor": "The HTTP Push Sensor name", "sensor_raw": "The HTTP Push Sensor name", "status": "Unknown", "status_raw": 1 },

How to I get the "Identification Token" ? I looked at https://www.paessler.com/manuals/prtg/live_multiple_object_property_status#supported_output, but I did not see this column

httppushsensor identificationtoken rest

Created on Sep 17, 2020 12:38:39 PM by  cdelarue (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Hello,

To get the token of the HTTP Push sensors, you can use this simple API: /api/getobjectproperty.htm?id={id}&name=httppushtoken&show=text&username={username}&passhash={passhash}

However, you can only get the token of one sensor at a time. Therefore, to generate a list of sensors with their parameters, I recommend to use the PowerShell module called PRTGAPI. To get the token, you could use this command for example:

Get-Sensor -Id {id} | Get-ObjectProperty -Raw

The -Raw parameter is necessary to show the property httppushtoken that you can see in the example below:

name : HTTP Push Data Advanced
parenttags :
tags : PushSensor PushData HttpPushSensor
httppushmethod : ANY
httppushtoken : 022D8159-2AFC-4E61-A246-#####
writeresult : 0
lastpushmessagetime : 0
staygreen : 1

You will find the GitHub page of the module right here: https://github.com/lordmilko/PrtgAPI There is also a well documented wiki: https://github.com/lordmilko/PrtgAPI/wiki

Kind regards.

Created on Sep 17, 2020 2:21:12 PM by  Florian Lesage [Paessler Support]

Last change on Sep 17, 2020 2:23:08 PM by  Florian Lesage [Paessler Support]



Please log in or register to enter your reply.


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.