New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


How to export the Folder column with PRTG API

Votes:

0

Your Vote:

Up

Down

Hi everyone,

How can I leverage the API in way that it also exports the folder name the device is residing in?

With the following API call I could export all devices and host information: /api/table.xml?content=devices&output=csvtable&columns=device,host&count=5000

This is perfect but I also need to know the folder it's in...

Can someone assist?

Thanks!

api api-queries http-api prtg prtg-api web-api

Created on Sep 26, 2018 2:42:46 PM by  bennie (0) 1



1 Reply

Votes:

0

Your Vote:

Up

Down

Dear bennie,

that would be

/api/table.csv?content=devices&columns=group,device,host&count=5000

However, nested groups cannot be read out this way. That would require to read the whole device tree and process it via a script, using

/api/treeobjects.json

Created on Sep 26, 2018 7:47:51 PM by  Arne Seifert [Paessler Support]

Last change on Sep 26, 2018 7:48:03 PM by  Arne Seifert [Paessler Support]



Please log in or register to enter your reply.


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.