New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

200.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


How can I show full channel names below report graphs?

Votes:

0

Your Vote:

Up

Down

When running reports with graphs, the channel names in the legend below graphs are abbreviated with points when they are too long. But, unfortunately, sometimes important information about what a particular channel shows exactly is cut off from the name:

original report Abbreviated Channel Names


Is it possible to display whole channel names instead of shortening points?

channel-names-report custom-report customization graph-legends prtg report-graphs reports

Created on Sep 30, 2013 2:15:54 PM by  Gerald Schoch [Paessler Support]



3 Replies

Accepted Answer

Votes:

0

Your Vote:

Up

Down

This article applies to PRTG Network Monitor 13.2.3 through 17.3.33

Customizing Reports: Showing Full Channel Names for Graphs

Important note: The current customization approach is unsupported and deprecated as of versions 17.3.34/17.4.35. This customization no longer works. For more details, see How can I re-brand and customize the PRTG web interface using CSS and Javascript?

If you have channel names that are abbreviated with points in report graphs and you would like to see the whole names there, you can customize report templates to avoid name shortening. Enlarge the space for the graph legends to a suitable size and PRTG will show the original, long channel names in graphs.

Displaying Full Channel Names in Report Graphs

You have to edit three files in order to customize report templates in a way that there will be enough space for whole channel names in graph legends of reports:

  • reportheader.htm in the \webroot\includes subfolder of your PRTG installation
  • A report template in the \webroot\reporttemplates subfolder of your PRTG installation. Choose the template file for the report in which you would like to enlarge the space for graph legends.
  • styles_custom.css in the \webroot\css subfolder of your PRTG installation

For details, please follow the steps below.

Step 1: Preparing Report Header

  1. Make a copy of reportheader.htm within the \webroot\includes folder.
  2. Rename the copied report header file, for example: reportheader_custom.htm
  3. Open reportheader_custom.htm with a text editor.
  4. Change the last line (default) in this file from <body id=“reportbody“> to <body id="reportbody" class="widelabel">
  5. Save the file.

Step 2: Preparing Report Template

  1. Make a copy of the report template you want to adjust within the \webroot\reporttemplates folder. Choose, for example: B11 Graph Only – 24h.htm
  2. Rename the copy, for example: B12 Graph Only Widelabel – 24h.htm
  3. Open the copy (“B12 Graph Only Widelabel – 24h.htm”) with a text editor.
  4. Include the customized report header file: Edit the line defining the include file and provide the name of the customized report header, for example: <#include file="includes\reportheader_custom.htm" varexpand="title" title=" | @title">
  5. Change the name of the template after the colon (as it is listed in PRTG) in the first line of the file, for example: <!--Graph only: Graph only widelabel (24h interval)-->
  6. Optionally, define a new template “group” name in the first line before the colon. This will give the template an own caption in the template selection in PRTG’s web interface. For example, add “Custom”: <!--Custom Graph only: Graph only widelabel (24h interval)-->
  7. Save the file. Finally, the customized template file “B12 Graph Only Widelabel – 24h.htm” will look like this: <!--Custom Graph only: Graph only widelabel (24h interval)--> <!--10--> <#lang key="html.reporttemplates.title" default="Report" var="title"> <#include file="includes\reportheader_custom.htm" varexpand="title" title=" | @title"> <#objectproperty name="reportheader"> <#report type="list" name="details\Graph plus 365day graph.htm" subname="details\Detail Loop.htm" graphaverage="86400"> <#cropmsg> <#objectproperty name="reportfooter"> <#include file="includes\reportfooter.htm">

Step 3: Preparing CSS File

  1. Open styles_custom.css in the \webroot\css folder with a text editor.
  2. Add the following line: body.widelabel .oneitem{width: 250px;}
  3. Save the file.

Step 4: Check the Customization in PRTG

  1. Open PRTG’s web interface.
  2. Add a new report: Choose Reports| Add Report from the main menu bar.
  3. In section Template, choose the custom report template you created before from the drop down menu (“B12 Graph Only Widelabel – 24h.htm”). If you have defined a custom template group, you will find the template there, for example: Custom Graph Only
  4. Click on Continue and choose the sensors for this report.
  5. Open the tab Run Now and click the corresponding button to run the report. Finally, these steps applied to report graph example from above, the channel names in the graph legend will look like this:

customized report

Note: Perhaps you have to reload the CSS to see the customization of the report. Press Ctrl+F5 in the report window.

Created on Sep 30, 2013 2:21:03 PM by  Gerald Schoch [Paessler Support]

Last change on Mar 22, 2018 12:22:28 PM by  Brandy Mauff [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Does this customization work for sensor names in reports without graphs?

I have a report (Top 100 Hi and Lo) that cuts the sensor name (SensorLongName...Dots) with dots in the middle and I would like to show the full sensor name even it is long.

Is this possible?

Thanks in advance.

Created on Dec 5, 2014 9:23:05 PM by  jf_hernandez (0) 1



Votes:

1

Your Vote:

Up

Down

Sorry I think no.

If you see a mid string ellipsis (like ABC...DEF) the names is longer than 128 characters. We push no hard limit on name length, but wherever the name is displayed we take only the first and last 63 characters with an ellipsis in the middle, assuming that this will provide enough information to identify an object by its name.

Created on Dec 17, 2014 5:00:29 PM by  Stefan Messner [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.