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


API Historical Data XML Retrieval

Votes:

0

Your Vote:

Up

Down

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 by  cyberion1985 (0) 1

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



2 Replies

Accepted Answer

Votes:

0

Your Vote:

Up

Down

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

Your Vote:

Up

Down

Thank you !

Created on Oct 1, 2015 5:59:42 PM by  cyberion1985 (0) 1



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.