Search Blog
spacer
You must be logged in and have permission to create or edit a blog.
 

How to use Report Builder to create custom reports in SCOM 2007

Aug 6

Written by:
Friday, August 06, 2010 4:32:07 PM  RssIcon

Operations Manager has some really nice reporting features. Most management packs have several predefined reports on board and even community management packs (especially those from last MP contest) have pretty cool reports on board as well. Still, sometimes there’s just not the right report available. In this case you have a couple of options, here are some popular examples:

  1. Access the data directly in the database:
    http://blogs.technet.com/b/kevinholman/archive/2007/10/18/useful-operations-manager-2007-sql-queries.aspx
  2. Creating a Custom Report for SCOM 2007 R2 with SQL 2008 reporting in Microsoft Visual Studio 2008
    http://www.systemcentercentral.com/BlogDetails/tabid/143/IndexId/60805/Default.aspx

While those options have many advantages and gives you full control of how your report will look and feel like, it’s very time consuming and there’s also a steep learning curve involved. If you just want to get the data out of your data warehouse and sent to you by email as an excel file, it’s a lot of trouble to go through.

Another option is to use the built-in Report Builder which ships with SQL Reporting Services. I couldn’t find much information on how to use this beast with SCOM, so I decided to play around with it and blog about it.

But before we get started, we need to install the models on the reporting server. Pete posted an excellent blog post over a year ago describing how to install the models which are shipped with SCOM since SP1: http://www.systemcentercentral.com/BlogDetails/tabid/143/IndexID/20269/Default.aspx

After you installed the models and assigned the right data source to them, we can get started…

The Mission:

For this demo, I show how to create a report listing all computers where the average CPU utilization over the last 7 days is below a certain value. There’s a similar report in the Virtual Machine Manager Management Pack but unfortunately the report is not designed to get scheduled because it only accepts absolute date values. So, our report here should be scheduled to run every week showing the results for the last 7 days.

Get Started:

In the reporting space you should an “Actions” item called “Design a new report” (be sure you have the Actions pane visible!):

 RB_001
Clicking on the above item will open the Report Builder of SQL Reporting Services. When you successfully installed the models as explained in Pete’s post, you should see the two models in the Getting Started pane:

RB_002

Select the Performance model, Table layout and click on OK. On the left hand side you should now see the “Explorer” pane showing you all the entities from the model and the corresponding fields below.

Basic Report Design:

Our report should contain a column showing the computer name, one showing the average value, one for the minimum value and another one for the maximum value of the CPU utilization. In the Entities explorer select “Object” and in the fields box, drag the “Name” field to the column fields on the design surface.

RB_003

After doing that, click on the “Performance Data Dailies” entry in the Entities explorer. Expand the fields “# Average Value”, “# Min Value” and “# Max Value”, like this:

RB_004

Drag the child elements: “Avg Average Value”, “Min Min Value” and “Max Max Value” to the column fields area on the design surface, next to the name field. Right-click on each of the columns and uncheck the “Show Subtotal” item to get rid of the subtotal line. You can also double-click on the column headers to provide some meaningful name for each column. Your designer should look like this now:

RB_005

Fine Tuning the Report Design:

Right-click on the field below the computer name column header (on the “xxxxxx” text)and select “Edit Formula…”. Let’s use the formula dialog to ensure every computer name is written in upper case:

RB_006

For the average, min and max values we want to round the numbers to display only 2 digits. Open the formula dialog as before for these columns and use the ROUND function:

RB_007

Sorting:

Click on the “Sort and Group” tool bar button to specify which column is sorted by default:

RB_008

You may also check out the Report Properties available using the Report menu:

RB_009

Filtering:

Now it’s time to pick the right data from our model. First thing to do is to limit our results to the class “Windows Computer”. To do that, select Class as entity and drag the “Class Default Name” to the right panel and select Windows Computer from the Filter List:

RB_010

After that we need from the “Performance Data Daily\Performance Rule Instance\Performance Rule” entity the fields “Performance Object Name” (equals Processor) and “Performance Counter Name” (equals % Processor Time).

From “Performance Data Daily\Performance Rule Instance” entity the field “Instance Name” (equals _Total).

Then select “Performance Data Daily” from the entity box and drag the Date Time field to the right and configure it “after 7 days ago”.

Lastly, expand the # Average Value field and drag the Avg Average Value to the right, and configure it “less than or equal to 1”. Right click on the last condition and select “Prompt” from the context menu to make this value configurable. The filter should then look like this:

RB_011

Conclusion:

Now you can test and run the report from the report builder or save it directly to the reporting services instance. Use the web access to the reporting services reports to create a new folder if you wish and save your freshly compiled report to that folder. After a refresh in the Operations Console, the folder and the report will appear and is ready to run and more important: ready to schedule!

RB_012

You can always re-open your reports with the Report Builder using the File – Open menu. I hope I could show you how to use the models and the reporting builder to create your own reports. If you have any feedback or improvement suggestions, let me know.

Have fun!

Stefan Koell 
Operations Manager MVP
http://www.code4ward.net

Tags:
Categories:

10 comment(s) so far...


Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

Hi, thanks a lot for your really helpful example. I am new to SCOM reporting. Let's say I would like to report not the CPU processor usages, but the average "%Free Space" for all logical disks of every system in a table. How would I do that? My problem is, that I do not know, how to create a report for that, because a system can have multiple instances of logical disks.

By Kilonzi on   Wednesday, September 22, 2010 4:01:04 PM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

Hi,
just remove the instance from the filter data dialog and you should get all instances listed in your report. You might change the sorting a bit.

cheers

By Stefan Koell on   Wednesday, September 22, 2010 4:06:21 PM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

Great write up!

Is there a way once the Object Column is selected for use in the report, that the Object column can be hidden and all other columns remain?

For example I need a report by Object but I want to display other columns more suited for our purposes and we don't like the Object name column that always shows (Windows Computer: computername.domain.local) Our computer names are contain 3 unique identifiers (DeptTypeNumber i.e. ACCTDELL1000) and we have other columns that break this up for various reporting reasons. We simply want a report that shows all objects with only show the following first 3 columns. We could add more columns of course for other needs, but we don't want Object. :-)

Dept
Type
Number
Other columns

Any wisdom is greatly appreciated! Thank you.

By Terry Goble on   Saturday, April 09, 2011 9:27:04 AM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

For me its not working. Pls help.. It's a very nice report at a glance and I will really appriciate if you help me to get the things worked for me.

I performed all the steps you mentioned. I get an error at the end. Can you help me with this?
error is No data was found that matched your report criteria.

By abhishek on   Friday, May 13, 2011 12:55:12 PM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

I suggest you try to remove all the filtering to see if anything is coming back and then add one filter at the time.

By Stefan Koell on   Friday, May 13, 2011 12:56:20 PM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

For me its not working. Pls help.. It's a very nice report at a glance and I will really appriciate if you help me to get the things worked for me.

I performed all the steps you mentioned. I get an error at the end. Can you help me with this?
error is No data was found that matched your report criteria.

By abhishek on   Friday, May 13, 2011 2:05:56 PM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

It works till class default name. If I run the report, I get the windows computers list. However, as I add the next filter Peormance Object Name” (equals Processor) and run the report. It gives the same error.
I will be very thankful, if you help me to fix this.

By abhishek on   Friday, May 13, 2011 2:05:59 PM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

You need to ensure that you really have performance data collected using a collection rule targeted to Windows Computers. You may try a different class (like Windows Operating System or whatever you used to target your rule).

By Stefan Koell on   Friday, May 13, 2011 2:08:34 PM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

Hi Stefan,
Thanx for your time & help.
It has worked for me when I selected Full Name Object.
Many thanx again for the great Blog.

By abhishek on   Monday, May 16, 2011 9:41:37 AM
Gravatar

Re: How to use Report Builder to create custom reports in SCOM 2007

You're welcome! Glad it's working for you.

By Stefan Koell on   Monday, May 16, 2011 9:42:12 AM

Your name:
Gravatar Preview
Your email:
(Optional) Email used only to show Gravatar.
Your website:
Title:
Comment:
Security Code
CAPTCHA image
Enter the code shown above in the box below
Add Comment   Cancel 
spacer
dummy