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

PRTG API Json Result

Votes:

0

Hi,

We need to access some PRTG data from the internet and we don't want to move the whole PRTG infrastructure to our DMZ.

To access the PRTG data from the DMZ we intend to write an application which accesses the data via PRTG API. We want to use the JSON format. The only odd thing is, that we always get html back from PRTG.

The following two calls return the same result: (we tested it with the XML Table Query Builder)

/api/table.json?content=sensortree&output=json&id=9380 -> should return json, but returns html /api/table.xml?content=sensortree&output=html&id=9380 -> returns html, which is correct

Is this a bug in the PRTG? Or do we need to enable/configure something in the PRTG?

Thanks for your reply.

api json results

Created on Apr 3, 2013 1:45:00 PM



3 Replies

Accepted Answer

Votes:

0

The 'content=sensortree' option does not support JSON as output. This seems to be a mistake in the API documentation.

Created on Apr 3, 2013 4:14:48 PM by  Roland Grau [Paessler Support]



Votes:

0

Is it possible to either correct the documentation or implement that feature (which would be even more useful) in upcoming versions?

Thank You!

Created on Sep 2, 2017 2:07:00 PM



Votes:

0

lkoenekamp,

Thank you for bringing this to our attention again, we updated the API documentation accordingly.

JSON output will not be possible for 'sensortree' in the near future, sorry.

Created on Sep 4, 2017 3:27:52 PM by  Gerald Schoch [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.