N-Able Report Manager – Adjustable Missing Patches in Report

I’m using N-Able for a few months now, my clients were asking for some reports so I decided to take a look at the N-Able Report Manger.

One of the main disadvantages for the reports were the Windows Patch Status Scores.
Apparently, if your machine is missing just one patch, it scores 0%

After hours of ‘reverse engineering’ I get what I wanted. A custom report based on the standard ‘Executive Report’, with adustable ‘missing patches’.
Now I can choose what the number of patches missing is giving the machine a score of 0%.


If you want to follow this little turorial, you need to know something about custom reports.
I will write this tutorial based on the default Executive Report. I’m using N-Able Report Manager 4.3 SP2


Download Files from your Report Manager Server

We will create a ‘Custom Report’ in the system, this requires some files.
Log in to your Report Manger Server (RDP) and copy these two files to another location.

The RDL file, contains the Report itself, the XML file contains the settings for the Report.
Just copy the files from the original directory, so you can edit them (and keep a copy of the original files!)

Edit the XML file

First we need to edit the XML file. The XML file contains the settings and choises for your Report.

Open the XML file in your favorite editor and look for the following text (line 1055)

As you can see, every parameter is starting with <RMParameter> and ending with </RMParameter>

After this parameter you must add the following text (from line 1075)

Now, we defined a new Parameter. This will let you choose the number of missing patches before running the Report.
If you want to adjust the default value, just change the number on <DefaultValue>
Save the file.
Hold on! First we need to edit the RDL file (the funpart!)

Edit the RDL file

Open the RDL file in you favorite editor (I use notepad++)
The RDL file is a XML file, in notepad++ you can collapse and expand the datasets.

First, find the part where all the Report Parameters are defined (bottom) and look for: (line 86934)

After this parameter, you need to add your parameter:
(so you will add this text AFTER </Reportparameter> (line 86942)

Next, we need to change some datasets.
If you collapse the datasets in your editor you can easily manage the datasets


Expand the dataset named ‘dsWinPatchScore’

First we need to add the Query parameter
Add the following code to the QueryParameters

You will find a SQL code within this dataset.
Find the following SQL code (line 3322 to 3340)

And REPLACE this code with the following code;


Also add the following code before END

I made a couple of changes in the SQL code;
– Removed the Distinct feature on the SELECT statement
– Put the Result of first SELECT statement in #OutdatedDevices2

I created a second SELECT statement which will put all records bigger than your selected missing patches into the original #OutdatedDevices table.

And make sure the #OutdatedDevices2 is cleaned up

You need to make this changes on the following datasets;

Save your file and upload the file to your Report Manger (along with the XML configuration file) as a custom report.






Background information

By default, the report manager is gathering data about machines with missing patches, put them in a temporary table and counts the number of machines.

I made a second step in this process, first I will put all the missing patches (with their machine ID’s) in a temporary table. Next, I will put the machines missing X patches in the (original) temporary table.


Laat een reactie achter

OPMERKING - U kunt dit gebruikenHTML tags en attributen:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">