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

PRTG API help !

Votes:

0

Hello i want to request the API and get a result with the name of all my device, theirs IP address and filter this request only for the device where the ping is UP Could you help me to build this request please ? Thanks !

api help http-content-sensor

Created on Apr 17, 2020 10:03:36 AM



2 Replies

Votes:

0

Hi Kevin,

You can do this fairly easily via PowerShell using PrtgAPI

Get-Device | where { ($_ | Get-Sensor ping).Status -eq "Up" } | select name,host

Regards,

lordmilko

Created on Apr 17, 2020 10:56:31 AM



Votes:

0

Hi Thanks for yout reply, but is it possible to get the same result with the LIve Data API ?

I have tried this request

/api/table.csv?content=sensors&output=csvtable&columns=device,sensor,status&id=11326&noraw=1&usecaption=true&filter_status=3&filter_type=ping&count=3000
/api/table.csv?content=devices&output=csvtable&columns=device,host&id=11326&noraw=1&usecaption=true&count=3000

But i can't get in one request this information : device,host when the PING of the device is UP

Is it possible to merge the content data, like /api/table.csv?content=sensors,devices&..... ?

Created on Apr 17, 2020 7:36:06 PM

Last change on Apr 17, 2020 7:38:58 PM by  Sven Roggenhofer [Paessler Technical 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.