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

API LAST VALUE CHANGE CHANNEL

Votes:

0

Hello, I need to change the channel on my sensor report, right now I only can see the % and I need the total Memory Mb channel, how I can do that?

/api/table.xml?content=sensors&filter_tags=@tag(memory)&columns=probe,group,device,sensor,lastvalue

api prtg-api prtgapi

Created on Jun 18, 2021 5:30:02 PM



1 Reply

Votes:

0

Hello,

the lastvalue property is always the one of the primary channel. You can change that channel in the PRTG interface, using the small pin icon.

As alternative, you can query all channels for each sensor:

/api/table.xml?id=1002&content=channels&columns=name,objid,lastvalue

Of course, "1002" is just an example ID. One can read channels only per single sensor. You can get that ID with the column "objid".

Created on Jun 22, 2021 5:09:32 PM by  Arne Seifert [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.