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 : how to fetch 3 top CPUs in a group of devices?

Votes:

0

Hello dear Paessler Team

We are currently building some automation routines to produce custom report, while using the PRTG API. We are able to extract probes, groups, devices, sensors, & are able to query the API to generate the graphs.

However we are currently stuck on the following need. For a given group (or device), we would like to fetch the 3 most/least top values for a given type of sensor. For instance: - to get the 3 most bandwith consuming interfaces for a device - to get the 3 most CPU consuming devices for a group

Would you mind kindly guide us on how we can achieve that ?

Best Regards

Mathieu Boscher

api prtg top

Created on Jun 17, 2014 7:36:33 AM



2 Replies

Accepted Answer

Votes:

0

Hello,

I'm afraid this might not be easily possible. You can get a sorted table from the API for live values on sensors of a device or a group (and have this table filtered by sensor tag, which equivalents a sensor type).
But for historic data, i.e. reports, it's complicated. The API can only deliver historic data on a per-sensor-basis. So it would be necessary to move the logic (searching the Top 3 sensors) into the external script that accesses the API. And then request the historic data for all sensors of the group / device.

best regards.

Created on Jun 18, 2014 2:45:23 PM by  Torsten Lindner [Paessler Support]



Votes:

0

Dear Paessler Team

Indeed, this is what we have done: - use the API to export historic data for a given period - then proceed with filtering & sorting using an external script. - & finally just the consider the X top sensors of a given type.

So, we finally achieve what we were looking for!

Thanks for your help.

Best regards

Mathieu Boscher

Created on Jun 23, 2014 1:40:12 PM




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.