Hi there,
PRTG allows you to build your own API calls. In order to do this follow these steps:
- Within the main menu of PRTG navigate to "Setup -> PRTG API -> Live Data"
- Under the "Live Data"-tab you can find a section called "PRTG HTTP API: XML Table Query Builder"
- Configure the options "Table Content" and "Table Type" as required
- Under the "Columns"-option you can enter your desired columns in a comma-separated list (at the end of the page under "Supported Output Columns" you can find all available columns)
- After configuring the options click on the "Run Query and Preview Output"-button
- Copy the displayed "Your Query URL" and paste it beside the URL of your webinterface (e.g. "http(s):my-prtg/api/table.xml....")
- Replace the "table.xml"-part in the URL with "table.csv" in case you wanted to get a comma-separated file
In case of exporting the device names and their corresponding host address, please find the API-call below.
/api/table.csv?content=devices&output=csvtable&columns=device,host |
Best regards.
Add comment