New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

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

Free PRTG
Download >>

 

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

 

Top Tags


View all Tags


How can I display sensor data from various PRTG installations in a single Map?

Votes:

0

Your Vote:

Up

Down

I would like to retrieve information on certain indicators such as availability of systems of more than one PRTG installation and show this data on one dashboard.

How can I summarize data of different sensors on different PRTG installations? How can I accumulate the data to show it in one map?

api http-xml-rest-value-sensor maps prtg

Created on Nov 2, 2016 1:36:05 PM by  Jonas Vieracker [Paessler Support] (101) 2 1

Last change on Aug 2, 2019 8:44:58 AM by  Maike Behnsen [Paessler Support]



1 Reply

Accepted Answer

Votes:

0

Your Vote:

Up

Down

This article applies to PRTG Network Monitor 19 or later

Accumulating Sensor Data with HTTP XML/Rest Value Sensor

When it comes to huge or several PRTG installations at one company (or as an MSP), it is helpful to display certain indicators of multiple devices or installations within one sensor or on a dashboard. With PRTG, you can gather data of specific sensors either from the same installation or from several ones and show it within one sensor.

The HTTP XML/REST Value sensor is able to retrieve and parse an XML file from a given URL. With the PRTG API, you can create such URLs and use them. You can then add the sensor to a map within the installation you have created it.

How to Add and Configure an HTTP XML/Rest Value Sensor

  1. Add a new HTTP XML/REST Value sensor to a device in your PRTG installation (for example, to the Probe Device).
  2. Adjust the Basic Sensor Settings to your needs.
    • For example, enter a meaningful sensor name, particularly if you use multiple HTTP XML/Rest Value sensors in your installation.

Further Sensor Settings and Creating the API Request

(1) Draft required URL

The URL field in the sensor settings is where you have to enter the API request to retrieve the needed data from a PRTG installation.

The following picture shows how you can create the URL for your API request.


Click to enlarge.

The following steps show you how to create such an API request in detail. To prepare the URL, you need a text editor and access to the API of your PRTG installation.

  1. Provide your PRTG server name: http://<yourPRTGserver>
    Access your PRTG installation via the web interface, copy the server name, including http(s)://, and add the name to the text editor.
  2. Add API function: /api/table.xml
    • In the PRTG manual, go to Live Data.
    • Add the desired API function (here: table.xml) after the server name in your editor.
  3. Add data table parameters: ?content=sensors&columns=sensor,status
    • You can find all data table parameters here.
    • In this use case, the parameters content=sensor and columns=sensor,status are necessary.
    • Insert the data table parameters after the API function in your editor.
  4. Add advanced filter: &filter_status=#&[email protected](tagname)
    • To get the required information, you need to further filter the data you want to retrieve. For example, filter by name tag to receive data of the desired sensors.
    • In this case, you can filter by status (for example, Up OR Down OR Warning) and by tag.
    • You can find advanced filters here.
    • Example: For all Ping sensors with a Down status, you would use the filter &filter_status=5&[email protected](pingsensor)
    • Insert your advanced filter after the data table parameters in your editor.
  5. Add authentication: &username=myuser&passhash=hash
    • To access the data of a PRTG installation via the HTTP XML/REST Value sensor, the request needs authentication, that is the credentials of a PRTG user account with sufficient access rights.
    • Username: your PRTG login name (for example, PRTG Administrator)
    • Passhash: You can find your passhash under Setup | Account Settings | My Account, section User Account. Click Show Passhash to display it.
    • Copy the passhash and insert it after passhash= in your editor.
    • Insert your authentication after the advanced filter in your editor.
  6. XML Node and Sensor Value
    • Enter the XML Node. This determines the sensor value. In this use case, it is sensor.
    • For the Sensor Value setting, select Use the number of occurrences of the selected XML node or its children/siblings to return the sensor count depending on your filter.

(2) Additional settings

Check your sensor settings according to the screenshot below.


Click to enlarge.

After saving all settings, the sensor will appear in your installation on the device you have added it.


Click to enlarge.

Now you can also add this sensor to a map.

Note: Add limits to the sensor channel settings to receive notifications based on your defined thresholds (for example, if five Ping sensors show a Down status).

Created on Nov 2, 2016 2:39:05 PM by  Jonas Vieracker [Paessler Support] (101) 2 1

Last change on Sep 13, 2019 11:12:03 AM by  Maike Behnsen [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.