This article applies to PRTG Network Monitor 17.4.35 or later
I want to change the following aspects of a report:
- Header image
- Contents of header / footer
- Order of report elements
- Graph sizes
How can I do this?
Modify Report Templates
PRTG Network Monitor includes a powerful reporting engine that allows to generate a variety of reports in order to review your network's data the way you need.
Important
This Knowledge Base article was written for technically savvy users with good technical knowledge (especially as regards HTML and file templates). We do not encourage modifying the template files that come with PRTG!
The reason is that we cannot supply updates and/or bugfixes for template files that have been changed by users when we publish new versions of PRTG. Also, editing template files is not covered by our usual support offering due to the complex nature of this process.
Our recommendation is to stick with the report options included in the web interface unless it's unavoidable. Please see the manual section Reports to check if you can create your reports with the functionality provided by the web interface.
Still Want to Proceed?
However, if you still want to change templates, this article cannot go into every detail, but it will give you a brief overview of the possibilities you have, in order to do the following:
- Header image: You can incorporate your own image, for example, your company logo into the report header. See How can I change the header image in reports?
- Header and footer: You can change the report header and footer and add your own comments to the report. See How can I change the header and footer in reports?
- Order of report elements: You can change the order of elements, delete, or add your own elements to the report. See How can I adjust the order of report elements?
- Size of graphs: You can change the width and height of graphs in the report. See How can I change the size of graphs in reports?
- Number of sensors: You can change the number of sensors that are included in a report. See How can I change the number of sensors in reports?
- Page breaks: You can delete page breaks in reports. See How can I delete page breaks in reports?
- Change the number of created PDF files: You can change the number of PDF files that a report creates. See Can I change the number of PDFs created by a report?
- Remove components: You can remove unwanted components of a report. See How can I remove components from reports?
Make a backup of every file you are going to change!
Using Custom Filenames
Every time a PRTG update is installed, all template files are overwritten to provide updates and bugfixes for these files. This is one reason why modifying report templates is not officially supported.
Report templates, images, and include files are located in the \webroot folder of your PRTG installation directory and spread across several subfolders. Whenever you install a PRTG update, all original PRTG template files are overwritten.
To avoid losing your changes, please create your own report template files with different filenames: simply duplicate the file that you want to start from and give it a different name. To keep changed images, please write-protect them using Windows Explorer.
Note: The folder has changed as of PRTG version 13.2.3. In previous versions the folder is \website. Please see this article for more information.
Locating the Files You Want to Modify
A template consists of several template files. When creating a report, the web engine pastes all of these files together into one HTML file to generate the report. In the \webroot\reporttemplates subfolder of your PRTG installation, locate the main report template file of the report you want to modify.
You can identify a template in the source code of the HTM file: The name as it appears in the PRTG web interface is written in the first line (as an HTML comment). The format is category: name.
The template or sub-template file will contain the following:
- printheading.htm: the visible header
- printfooter.htm: the visible footer
- <#report> tag: defines a sub-template to be included in the name attribute, for example
<#report ... name="details\Graph plus 30day graph and Table.htm"...>
Note: Please make sure you do not make changes to printhead.htm or printfoot.htm as these do NOT include the visible header/footer but only styling and closing tags.
If you cannot locate the heading or the footer in the main template, consider looking in the sub-template in the \webroot\reporttemplates\details subfolder of your PRTG installation.
See Also
- How can I change the header image in reports?
- How can I change the header and footer in reports?
- How can I adjust the order of report elements?
- How can I change the size of graphs in reports?
- How can I change the number of sensors in reports?
- How can I delete page breaks in reports?
- Can I change the number of PDFs created by a report?
- How can I remove components from reports?
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.