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 Historical Data XML Retrieval

Votes:

0

Hello,

this is part of my api call :

http://xxx.xxx.xxx.xxx/api/historicdata.xml?id=2024&avg=0&sdate=2015-09-01-00-00-00&edate=2015-09-01-23-59-59&username=username&password=password

This takes a few seconds to generate. If I use a wider date range, it takes even longer.

What I am using this for is to store the data into a array inside PHP and then work with the array to calculate results. Isn't there a better way that I can code, to get the data more quickly ? Maybe draw from a report where the aggregation is the average of a day instead of hourly ? Then it would only need to retrieve 30 values instead of 1944.

api http prtg xml

Created on Oct 1, 2015 2:21:08 PM

Last change on Oct 1, 2015 2:47:42 PM by  Arne Seifert [Paessler Support]



2 Replies

Accepted Answer

Votes:

0

Dear Cyberion

Please use the parameter &avg=86400 to generate average intervals of 1 day (86400 seconds.)

Created on Oct 1, 2015 2:48:54 PM by  Arne Seifert [Paessler Support]



Votes:

0

Thank you !

Created on Oct 1, 2015 5:59:42 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.