Is there a simple way to just export the Device name and it's IP Address from PRTG?
Article Comments
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.
Feb, 2019 - Permalink
Great, thanks for your help, that's exactly what I wanted.
Feb, 2019 - Permalink
Is it possible to not display RAW data? So basically the data is always double. Thank you.
Nov, 2019 - Permalink
Hello Stroet,
The output cannot be adjusted to this, I'm afraid.
Kind regards,
Erhard
Nov, 2019 - Permalink
Hi there,
PRTG allows you to build your own API calls. In order to do this follow these steps:
In case of exporting the device names and their corresponding host address, please find the API-call below.
Best regards.
Feb, 2019 - Permalink