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

Historic data using the API



I am trying to pull data using this string


and I get this

  <?xml version="1.0" encoding="UTF-8" ?> 
- <histdata>
- <item>
  <datetime>4/11/2011 12:00:00 AM</datetime> 
  <coverage>0 %</coverage> 

Which does note match up if I use the web interface

  <?xml version="1.0" encoding="UTF-8" ?> 
- <histdata>
- <item>
  <value>9,993,296 KByte</value> 
  <value>948 kbit/s</value> 
  <value>3,398,224 KByte</value> 
  <value>322 kbit/s</value> 
  <value>6,595,072 KByte</value> 
  <value>625 kbit/s</value> 
  <value>0 %</value> 
  <coverage>100 %</coverage> 

Looked at the API documents and I am not sure what the problem is.

api prtg snmp

Created on Apr 14, 2011 2:17:49 PM

Last change on Apr 18, 2011 3:18:13 PM by  Daniel Zobel [Product Manager]

5 Replies




which URL is used when you "produce" the historic data with the Webinterface? There should be a difference.

best regards.

Created on Apr 14, 2011 2:42:35 PM by  Torsten Lindner [Paessler Support]



From the menu sensors -> View historical data. I expect that these should produce the same data set. My objective is to get the xml of the device for the day specified.


Created on Apr 14, 2011 3:05:33 PM



Do you get the same data when using a smaller average (1 hour) for example?

Created on Apr 15, 2011 3:28:26 PM by  Torsten Lindner [Paessler Support]



When I use a smaller range the data is as expected. The output matches. If I offset the the start date by 1 hour and the end date by 1 hour I get the data that is close to what I expect.


Using the web page I get 100% of the data compared to using the url which gives me 96% of the data.

Created on Apr 15, 2011 5:44:11 PM



Please make sure you use the right time notation. To include an entire day (until midnight) into the query, please use 24-00-00 as hour definition in your date range.

For example, try


This will result in exactly the same XML files, no matter if queried via web interface (Historic Data tab) or the API functions.

Created on Apr 19, 2011 3:36:12 PM by  Daniel Zobel [Product Manager]

Last change on Apr 19, 2011 3:36:27 PM by  Daniel Zobel [Product Manager]

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.