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

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 Download

Top Tags


View all Tags

API Historicdata json id and channelid possible?

Votes:

0

Your Vote:

Up

Down

Hello,

I have 1 sensor with 30 channels. I want to have a historicdata in json for 1 specific channel of this 30 channels.

Here the closest I get so far:

http://xyz-prt/api/historicdata.json?id=2490&channelid=6&avg=0&sdate=2021-05-10-13-00-00&edate=2021-05-10-13-56-00

Sensor is 2490 and I want a historicdata from channel 6 from 13 - 13:56. But the "&channelid=6" is ignored in this case. I get the same historicdata with "&channelid=12" etc. How to do it?

Thnx in advantage.

api channel historicdata

Created on May 12, 2021 6:38:12 AM by  w_rosskopf (0) 1



3 Replies

Votes:

0

Your Vote:

Up

Down

Hello,

Thank you for your message.

Regarding what you would like to achieve, I'm afraid that there is no option to get the historic data of a specific channel only.

However, you have the possibility to filter the result via a script to only keep the channel you desire. The PowerShell module PRTGAPI can also help here. to process the data. Here is its documentation: https://github.com/lordmilko/PrtgAPI/wiki

I also invite you to open a feature request if there is no existing ones related to it, by following our guideline here: https://kb.paessler.com/en/topic/79245-how-can-i-propose-new-features-or-sensors-for-prtg.

If you have questions, let us know.

Regards.

Created on May 12, 2021 7:55:20 AM by  Florian Lesage [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thanx for your answer,

just a last try:

api/historicdata.json?id=2490&channelid=6&avg=0&sdate=2021-05-10-13-00-00&edate=2021-05-10-13-56-00

I found out this gives me back the historical data of the last channel. Is there nothing to use like "&subid" or "&channelid" ?

Thank you!

Created on May 12, 2021 9:02:14 AM by  w_rosskopf (0) 1



Votes:

0

Your Vote:

Up

Down

I'm afraid that the API endpoint /api/historicdata.json doesn't take into account other parameters than the id of a sensor. Therefore, this is not possible to filter the channels returned by the API.

Regards.

Created on May 12, 2021 9:49:47 AM by  Florian Lesage [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.