I'm looking to add on a private page the current status for my different servers using PRTG, wondering how I go about it. With perhaps some sample code.


Article Comments

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.

Hi Gibster,

You can use the API of PRTG to query status information from your PRTG server. The API is documented on the "Setup > PRTG API" page.

An example to request an XML file with the number of all sensors in error state could look like this:

http://ServerAdress/api/table.xml?id=0&content=sensors&output=xml&columns=lastvalue,status&filter_status=5&username=prtgadmin&password=prtgadmin

ID "0" will include the complete device tree.

Next to this you could create a public map and integrate the map into your homepage via an iFrame. Please note that these will only work with http.

Best regards, Felix


Feb, 2016 - Permalink