I am trying to create an XML API to retrieve some information so i can create a custom PRTG map for one of my sites. So i have a group with Wireless Access points, each access point only has a ping sensor against it. Not interested in any other details except up/down. The ID of the group is 40629.
To get me started in my quest can someone point me in the correct direct to collect this data. So i will have to create 3x xml api calls one for UP one for DOWN and one for Paused. i will then put this in a table along with other network devices.
I have done some basic calls but i cannot target this group and not sure how to narrow down to the states i would like. I hate to ask for examples but i am wondering if someone can get me started.
https://xx.xx.xx.xx/api/table.xml?id=40629?content=sensors&username=api&passhash=bignumber
Thanks all in advance
Hello,
Thank you for your message.
To get all Ping sensors from a group and in specific state I invite you to use the following API call:
Where all uppercase values correspond to the following:
Regarding the data returned by PRTG, you have the possibility to add/remove columns depending on your needs. You will find a list of available columns here: API manual.
In case you want to generate the report in XML, you need to replace "table.json" with "table.xml". For CSV, also use "table.xml" and add "&output=csvtabale" (without quotes) in the API call.
If you have questions, do not hesitate.
Regards.
Mar, 2022 - Permalink