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 graphs by date

Votes:

0

I am sending the following url:

https://server/chart.png?sdate=2014-08-21-12-00-00&edate=2014-08-25-12-05-00&width=700&height=420&graphid=1&id=4110&username=uName&passhash=123456789

and i always get a 2 day graph. What do i need to change?

api graphs prtg

Created on Sep 2, 2014 7:41:12 PM



1 Reply

Votes:

0

If you are trying to pull up a historic graph, you will want to use an API call similar to the one below:

http://server/chart.png?graphid=-1&id=555555&avg=3600&sdate=2014-08-27-15-47-00&edate=2014-09-03-15-47-00&clgid=&width=850&height=270

From the url you posted above, it looks like the graphid=-1 is not in the front and isn't -1 but 1 which might be causing the issue.

You can always test this out by running a historical report and then copying the URL for the graph that is displayed there.

Created on Sep 3, 2014 1:53:45 PM by  Greg Campion [Paessler Support]

Last change on Sep 3, 2014 1:55:16 PM by  Greg Campion [Paessler Support]




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.