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

Graph generated from API date issue

Votes:

0

Hello,

this is part of my api call :

chart.png?type=graph&graphid=2&id=1004&width=600&height=260&graphstyling=showLegend%3D%271%27&sdate=2015-09-01-00-00-00&edate=2015-09-30-00-00&avg=86400

The graph displays, but the dates are wrong. What it actually does ; it populates the graph as per ID above, and then displays it with avg 86400 (1 day). It displays the graph with the date range as it is originally.

how do I get the above api I call to generate a graph with the date range as requested ?

api chart prtg

Created on Oct 5, 2015 9:53:16 AM



1 Reply

Votes:

0

Hi,
please try the following call:

/chart.png?graphid=-1&id=1004&width=600&height=260&graphstyling=showLegend%3D%271%27&sdate=2015-09-01-00-00-00&edate=2015-09-30-00-00-00&avg=86400

This should generate the correct output.

Created on Oct 6, 2015 1:53:24 PM by  Konstantin Wolff [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.