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


PRTG API help !

Votes:

0

Your Vote:

Up

Down

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 by  Kévin GOUZY (0) 1



2 Replies

Votes:

0

Your Vote:

Up

Down

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 by  lordmilko (1,722) 2 1



Votes:

0

Your Vote:

Up

Down

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 by  Kévin GOUZY (0) 1

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