Jimmy Harper's Operations Manager Blog

Posts in this blog are provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified in the Terms of Use

Sample Queries and Reports from my MMS Session

Sample Queries and Reports from my MMS Session

  • Comments 6
  • Likes

Here are the reports and queries that I used in the demos of my “Writing Basic Custom Reports for Operations Manager” session at MMS 2010.

 

**I’ve updated the Alert Dashboard report to correct a problem with the Alert Priority/Severity pie charts.

 

Here are the descriptions of each file included:

 

MMS.Sample.Reports.MP.xml
This is the Management Pack that contains all of the reports listed below.

 

Sample Reports:

Advanced.Performance.Report.rdl
This report allows the user to select a singe Performance Counter to report on.  The user can find the counter based on Management Pack, Rule, Object, Counter, and Instance.  The user can also select the computers to report on, based on group membership.

image

 

 

Alert.Dashboard.rdl
This report shows the following information about Alerts within a user-specified time range:

  • Pie charts showing alert count by Severity and Priority
  • Line charts showing Top 10 Alerts, Top 10 Management Packs generating alerts, and Top 10 Computers generating alerts
  • Pie/Line charts showing Alert logging latency

image

 

Sample.Alert.Report.rdl
This report displays a basic table with Computer Name, Alert Name, Date/Time, and Repeat Count.  The user selects a date range and the computers to report on, based on group membership

image

 

Sample.Event.Report.BasicTable.rdl
This report displays a table showing error events for specified computers.  The user selects a date range and the computers to report on, based on group membership

image

 

Sample.Event.Report.GroupedTable.rdl
Same data as the above report, but this one groups by Computer Name and Event ID/Source to make the report cleaner.

image

 

Sample.Performance.Report.Chart.rdl
This report shows a line chart of the %Processor Time counter for selected Computers.

image

 

Sample.Performance.Report.Table.rdl
Same as above, but the data is in a table instead of a chart.

image

 

Sample Queries

GroupList.txt
This query gets a list of groups currently in OpsMgr.  It will only return groups that contain objects (empty groups are not listed)

 

ComputerList.txt
This query gets a list of objects in a group, then returns the Computer Name for each object.  The query requires the ManagedEntityRowId for the group as a parameter (passed by the above GroupList query).

 

AlertReport1.txt
This is the basic query used for the Sample Alert Report, but does not contain any parameters…it just gets data for ALL alerts

 

AlertReport.txt
This is the query used for the Sample Alert Report, with Computer and Date Range parameters

 

EventReport.txt
This is the query used in the above Event Reports.

 

PerfReport.txt
This is the query used in the above Performance Reports

 

Thanks to everyone who came to my session.

Attachment: MMS_Files.zip
Comments
  • Thanks Jimmy, I missed MMS this year, but these are great, keep them coming.  ;)

  • Jimmy, is there any way to have start and end dates similar to what other SCOM reports provide?  For example, to choose a start date of today minus 1 week and end date of today.  That way the reports could be scheduled.  I'm not sure how to schedule these without the advanced

  • Creating a date/time control like the one in the built-in reports isn't easy, but you could hard code something like this in a custom report...just set the default end date to "=Today" and the default start date to "=Today.AddDays(-7)"

  • hi,

    iam getting error " query execution failed for data set 'Alert Severity'. All other reports are working fine. Can you please help me.

    thank you.

  • Does the error give any additional details?  If not, run this query against the DW (you can replace the dates if needed) and see if it works:

    select Severity=

    CASE a.Severity

    WHEN 0 then 'Informational'

    WHEN 1 THEN 'Warning'

    WHEN 2 THEN 'Critical'

    END

    ,Count(*) as count

    from Alert.vAlert a

    where RaisedDateTime between '10/1/2010' and '10/10/2010'

    Group by a.Severity

  • Hi,

     This site provides the better source for the Jobs than the other jobs sites. Here employer may take the good job from the site. This site gives us to all types of Job and provide the expert information. Many people gets the Jobs through this website as compare to the other website. Here you will get all the jobs which is better for you and using this job you can increase your Profile.

    <a href=”www.hound.com/jobvideo/11102/Operations_Manager/Operations/” rel=”do follow”>operations manager jobs</a>

    Regards,

    Abdiel Technologies.

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment