What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general.

Learn more

PRTG Network Monitor

Intuitive to Use. Easy to manage.
More than 500,000 users rely on Paessler PRTG every day. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free Download

Top Tags


View all Tags

Export device list of a specific group with status down or up

Votes:

0

Hi

I need to export a device list of a specific group via API command, can someone remind me the command sintax?

thanks

api http-api prtg-api web-api

Created on Jan 14, 2020 9:18:01 AM



7 Replies

Votes:

0

Hi,

You can use the following API to generate the desired list:

http://api/table.csv?id=objectid&columns=objid,name,host,probegroupdevice=text,status&count=*

Kind regards

Created on Jan 14, 2020 1:58:44 PM by  Marijan Horsky [Paessler Support]



Votes:

0

Thanks for the reply!

I have found this API command that satisfy my needs:

server-name/api/table.xml?content=sensors&output=csvtable&columns=device,status,tags&filter_type=ping&id=2853

whre the ID is the group ID that I want to filter.

I have another question:

How can save on a local network folder the XML file created?

Thanks!

Created on Jan 15, 2020 9:15:21 AM



Votes:

0

Hi,

Would you like to save it as XML or CSV file?

Kind regards

Created on Jan 15, 2020 9:20:18 AM by  Marijan Horsky [Paessler Support]



Votes:

0

We prefer XML but the format is not important we can switch if necessary.

thanks

Created on Jan 15, 2020 9:21:44 AM



Votes:

0

Hi,

I would ask you to change the API-Call from table.xml to table.csv. Does it save the file now?

Kind regards

Created on Jan 15, 2020 9:24:40 AM by  Marijan Horsky [Paessler Support]



Votes:

0

At the moment we are just looking for the correct API syntax and we run the url directly in our browser so the file pop up from the browser winodow but the goal is to set up an automation to save somewhere the CSV file.

Is there a scheduler to do this job using API?

thanks

Created on Jan 15, 2020 9:44:15 AM



Votes:

0

Hi,

Maybe you can work with a script which runs the api call automatically at the desired time with the help of the task scheduler of Windows.

Kind regards

Created on Jan 15, 2020 9:54:35 AM by  Marijan Horsky [Paessler Support]




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.