The first rule (TopNHosts_Pt1) is a generic "catch-all" rule that will collect the host statistics for the report. You can incorporate this action into your default rule (if that is serving as a catch-all).
The second rule (TopNHosts_Pt2) is triggered by a Keep-alive message and is the thing which generates and e-mails the report table. This script will also reset the counts every time a report is e-mailled. To make it work properly, you will need to configure a Keep-alive.
Both scripts are VBScript, and need full read/write permission in the RunScript action options.
To configure a keep-alive: Setup > Inputs > Keep-alive > Enable keep-alive. Set the Frequency to a value that suits you - this will be how often the report is e-mailed, and the counts reset. (86400 for a daily report, 3600 for an hourly report).
NB. You will need to edit the Pt2 script (TopNHosts_Pt2.txt) to ensure that the e-mail recipient and subject, etc, is what you need.
Download TopNHosts_Pt1.txt from this post, TopNHosts_Pt2.txt from the post titled 'Top N Hosts Report (part 2)'
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community.
More than 150,000 members are here to solve problems, share technology and best practices, and directly
contribute to our product development process.
Learn more today by joining now.