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.
Article Comments
Is it possible to either correct the documentation or implement that feature (which would be even more useful) in upcoming versions?
Thank You!
Sep, 2017 - Permalink
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.
Sep, 2017 - Permalink
The 'content=sensortree' option does not support JSON as output. This seems to be a mistake in the API documentation.
Apr, 2013 - Permalink