I would like to have a smaller number of sensors in a report. How can I do this?
How can I change the number of sensors in reports?
Votes:
0
1 Reply
Votes:
0
This article applies to PRTG Network Monitor 17.4.35 or later
Changing the Number of Sensors in Reports
PRTG comes with report templates for the top 10 or top 100 sensors. You can adjust the number of sensors that are included in a report to your needs using a custom template.
A template consists of several template files. When creating a report, the web engine pastes all these "includes" together into one HTML file to generate the report. In order to modify a report template, changes to the main file, to one of the include files, or both are necessary.
Note: Good knowledge of HTML is a minimum requirement to make any of the following modifications! Please note that modifications are unsupported.
Make a backup of every file you are going to change!
- Step 1: In the \webroot\reporttemplates subfolder of your PRTG installation, locate the main report template file of the report of which you want to change the number of sensors, for example, T1b Top100 Highest and Lowest (5min).htm.
- Step 2: Once you've found the right template file, duplicate it and save it with a custom name. Tip: Choose a filename with a leading 0 (zero) and your template will appear at the top of the list later on (the entries in the dropdown list are sorted alphabetically based on the filenames).
- Step 3: Open the file with a text editor. You may need to open the editor as an administrator user to be write-enabled.
- Step 4: Choose a name for your report template and write it into the HTML comment in the first line of the source code (delete the old name first). The format is category: name. Category (with grey background) and name will appear in the template selection dropdown in the PRTG web interface later on. Save the HTM file.
- Step 5: Search for the line containing the string #report type="clusterloop", for example
<#report type="clusterloop" file="details\Stats Loop HiLo 5.htm">
This is the place where the sensors are included. Remember the HTM filename. - Step 6: In this include call, change the filename of the HTM file that is called (for example, append _custom to the filename call). The changed line will look like this:
<#report type="clusterloop" file="details\Stats Loop HiLo 5_custom.htm">
- Step 7: Go to the \webroot\reporttemplates\details subfolder of your PRTG installation.
- Step 8: Find the HTM file that is called in the source code of the main report template file (see Step 5).
- Step 9: Duplicate this HTM file and save it with the custom name you used in Step 6 (for example, append _custom to the filename). Make sure the resulting file name matches the one you used in Step 6.
- Step 10: Open the file with a text editor. You may need to open the editor as an administrator user to be write-enabled.
- Step 11: Search for lines containing the string #report type="statstable". For example, you will find two lines, one for the "Highest Average" and one for the "Lowest Average":
<#report type="statstable" columns="sensor,average,minimum,maximum,probegroupdevice" count="100" avg="300" sortby="average" showposition="true" clgid="<@clgid>"
- Step 12: Change the count values as you like and save your changes.
- Step 13: In PRTG, create a report using the new template you created in Step 4 and check the modified layout.
See Also
- How do I modify PRTG's report templates?
- 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 delete page breaks in reports?
- Can I change the number of PDFs created by a report?
- How can I remove components from reports?
Created on Nov 15, 2017 7:34:45 AM by
Brandy Greger [Paessler Support]
Last change on Mar 23, 2018 12:40:56 PM by
Brandy Greger [Paessler Support]
Add comment