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


Historic data API returning different time interval than requested

Votes:

0

Your Vote:

Up

Down

I'm using the historicdata API in order to retrieve one entry for the whole time interval in a day. The request is as follows:

http://coreAddress/api/historicdata.xml?id=sensorId&avg=30600&sdate=2017-11-03-08-00-00&edate=2017-11-03-16-30-00

The returned XML contains a single entry, as expected, but the time interval starts and ends earlier with 30 minutes:

<histdata totalcount="1" listend="1">
<prtg-version>16.3.24.5302</prtg-version>
<item>
<datetime>11/3/2017 7:30:00 AM - 4:00:00 PM</datetime>
<datetime_raw>43042.5833333333</datetime_raw>
[...]
</item>
</histdata>

Any suggestions for working around this issue?

api historicdata prtg

Created on Nov 6, 2017 1:48:19 PM by  barabas_a (0) 2

Last change on Nov 7, 2017 11:09:25 AM by  Luciano Lingnau [Paessler Support]



5 Replies

Votes:

0

Your Vote:

Up

Down

Hi there,

What timezone is configured for the account you're using?


Kind regards,
Stephan Linke, Tech Support Team

Created on Nov 7, 2017 12:51:45 PM by  Stephan Linke [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Hello, The timezone is set to UTC + 02:00. I wouldn't believe that to be the issue, as calling the method with different intervals behaves as expected.

Kind regards, Andrei

Created on Nov 7, 2017 2:17:55 PM by  barabas_a (0) 2



Votes:

0

Your Vote:

Up

Down

This seems to be a bug in the reporting engine, I can recreate the issue with my local installation of the current preview branch. I'll update you once I have an update (or explanation) from a developer.

Note: The response may take a bit, depending on their schedule.

Kind regards,
Stephan Linke, Tech Support

Created on Nov 8, 2017 9:41:55 AM by  Stephan Linke [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Could you please keep me updated regarding the issue, whenever possible? Unfortunately, the issue is holding us back from developing an internal tool based on PRTG historical data.

Thank you, Andrei

Created on Dec 4, 2017 10:56:48 AM by  barabas_a (0) 2



Votes:

0

Your Vote:

Up

Down

Hi Andrei,

A bug ticket for the issue has been filed, but it's still being analysed. I'll keep you posted.


Kind regards,
Stephan Linke, Tech Support Team

Created on Dec 4, 2017 11:22:45 AM by  Stephan Linke [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.