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

I need separate historical graphs per channel, is this possible?

Votes:

0

At this moment I can request PRTG through the API to give me a historical graph of for example the CPU sensor. I use this call:

http://myprtgserver/chart.png?id=2949&avg=15&sdate=2016-01-20-00-00-00&edate=2016-01-21-00-00-00&width=850&height=270&graphstyling=baseFontSize='12'+showLegend='1'&graphid=-1&username=pieter&passhash=314159265358"

This gives met the combined graph of my four CPU's. What I need are four graphs for every CPU. So I was expecting an extra parameter ChannelID.

Is it possible through the API to get separate historical graphs per CPU, or in general per sensor channel?

api channel historical-graph prtg

Created on Mar 21, 2016 11:01:50 AM



Best Answer

Accepted Answer

Votes:

0

Hello Pieter,

thank you for the screenshots you can use the "&hide=" command to remove channels which are not wanted. As an example:

Processor 1 Channel ID 2 Processor 2 Channel ID 3 Total Channel ID 0

To display only the channel processor 1 use the following command: &hide=3,0

Created on Mar 23, 2016 12:33:28 PM by  [email protected]



8 Replies

Votes:

0

Hello,

Please try to use by graphid= "1! instead of "-1". These numbers are available: 0=live, 1=last 48 hours, 2=30 days, 3=365 days

Created on Mar 22, 2016 1:42:16 PM by  [email protected]



Votes:

0

Thans for your reply, however your option changes the period, not the sensor Channel.

Created on Mar 22, 2016 3:10:25 PM



Votes:

0

Please forward us some screenshots showing the graphs with graphid= "1" and "-1".

Created on Mar 23, 2016 9:21:38 AM by  [email protected]

Last change on Mar 23, 2016 9:22:02 AM by  [email protected]



Votes:

0

As an alternative, you might want to have a look at the CSVImport tool

CSVImport was originally intended to build graphs from data that is exported using CSVExport, but it can also build graphs using live sensor channel data directly from your PRTG server.

Created on Mar 23, 2016 10:25:33 AM



Accepted Answer

Votes:

0

Hello Pieter,

thank you for the screenshots you can use the "&hide=" command to remove channels which are not wanted. As an example:

Processor 1 Channel ID 2 Processor 2 Channel ID 3 Total Channel ID 0

To display only the channel processor 1 use the following command: &hide=3,0

Created on Mar 23, 2016 12:33:28 PM by  [email protected]



Votes:

0

Thanks a lot, &hide does the trick!!

However I can not find the hide parameter in the documentation. By trying I found that hide 0 hides the total, and hide -4 hides the downtime. I think you can make people happy if this is added to the web site api documentation.

Created on Mar 23, 2016 12:48:55 PM



Votes:

0

Hello Pieter,

Thank you for the hint.

I fowrard this request to our development team to add this to the api documentation.

Created on Mar 23, 2016 1:15:01 PM by  [email protected]



Votes:

0

Hello Pieter,

The channel ID's will differ per sensor type (although -4 is always the downtime) and can be found on the sensor overview page.

Created on Mar 23, 2016 1:16:09 PM




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.