New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.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


filtering channel ID to JSON output

Votes:

0

Your Vote:

Up

Down

Is there a tag I can add to my url query that filters the output to specfic channels ID of a probe.

/api/table.json?content=channels&output=json&columns=name,lastvalue_&id=54907&

...this gives several channels number 1-6. I only wish to display channel ID 4.

api channels json query rest

Created on Feb 24, 2020 4:32:21 PM by  callaghana (0) 1



7 Replies

Votes:

0

Your Vote:

Up

Down

Hi there,

you can use the "&count=1" option to limit the output. However, in this way you can only exclude channels which are at the end of the output.

Created on Feb 25, 2020 8:26:39 AM by  Moritz Heller [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thank you Moritz!

Is it possible to format the PTRG JSON with HTML?

Created on Feb 25, 2020 2:40:29 PM by  callaghana (0) 1



Votes:

0

Your Vote:

Up

Down

Hi callaghana,

You can change the output format of the API call:

"xml": default format (recommended)
"xmltable": a HTML table in XML format
"csvtable": comma separated format
"html": HTML table

More information can be found here

Created on Feb 26, 2020 7:06:33 AM by  Moritz Heller [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thank you Moritz - I can't get xmltable to work. this and the other XML examples don't display data but trigger a XML file download but I need the data to be live.

Created on Feb 26, 2020 9:19:25 AM by  callaghana (0) 1



Votes:

1

Your Vote:

Up

Down

Hi Callaghana,

Please note that this is the only way to use XML as output.

Created on Feb 26, 2020 9:56:28 AM by  Moritz Heller [Paessler Support]



Votes:

0

Your Vote:

Up

Down

I might be going about this the wrong way. Do you know of a way to format ahtml page that sits on the the xml/json?

Created on Feb 26, 2020 4:04:19 PM by  callaghana (0) 1



Votes:

0

Your Vote:

Up

Down

You might want to check PRTGapi to avoid headaches here :)

Created on Feb 27, 2020 12:12:51 PM by  Stephan Linke [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.