Is there a way to export a list of devices from PRTG, including their hierarchy (Probe, Group, Sub-Group, Device)?
To export a list of the devices configured, you can use the following API call:
https://PRTGSERVER/api/table.csv?content=devices&columns=objid,name,host,group,probe,parentid&count=*&username=PRTGUSER&passhash=PASSHASH
Please, replace the information according to your configuration. You will find your passhash in Setup | Account Settings | My Account ("/myaccount.htm?tabid=1") by clicking on the corresponding button.
You can also generate a list with the XML format by using table.csv in the request above.
Here are the other information you can get as well:
favorite,condition,upsens,downsens,downacksens,partialdownsens,warnsens,pausedsens,unusualsens,undefinedsens,totalsens,schedule,basetype,baselink,notifiesx,intervalx,access,dependency,position,status,comments,priority,message,tags,type,active
Finally, I just want to notice that it's not possible to get the entire hierarchy of the device. The information returned by Group is only the name of the parent group, parent_id also return the id of the parent group (not above).
Disclaimer:
The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.