using the API, how can I export the PRTG structure to draw a Vizio Diagram?

The idea is generate a tree of levels from ROOT GROUP to DEVICE to draw a better drawing in MS Vizio. The result must represent the tree.

Thank you for your help.


Article Comments

Hello Hugo,

Try this: https://your.prtg.server/api/table.xml?content=devices&output=xml&columns=objid,probe,group,device,host This will result in an xml file that you can also open directly in Excel. There is no API call for the whole structure though, meaning "group" will only show the name of the group the device is located in, it won't show for example the eventually existing groups above it when the group is nested.

If it has to more csv like: https://your.prtg.server/api/table.xml?content=devices&output=csvtable&columns=objid,probe,group,device,host

Kind regards,

Erhard


Sep, 2019 - Permalink

Thanks for your help,

Do you know where I can find information about the parameters like

content=devices & output=csvtable & columns=objid,probe,group,device,host

for all possible options?


Sep, 2019 - Permalink

Hi Hugo,

In PRTG head to "Setup | PRTG API", tab "Live Data", further down the page there is table about the possible columns and for which output they can be used.

Kind regards,

Erhard


Sep, 2019 - Permalink