Menu Close

Get All SCOM Rules and Monitors, with their Alert details to a CSV

Quick Download:

https://gallery.technet.microsoft.com/Get-All-SCOM-Rules-853ecfde

 

This is a script that will generate a list of all Rule and Monitors in a SCOM deployment.

It will also gather important information, like if the workflows generates an alert or not, and the details of the alert like default priority and severity.

Rules:

  • DisplayName (of the rule)
  • Name (MP rule id)
  • Target (class the rule targets)
  • Category
  • Enabled (true or false)
  • Alert (true or false)
  • AlertName (The display of the Alert Name as seen in the console)
  • Priority
  • Severity
  • Management Pack Display Name
  • Management Pack Name
  • Data Source
  • Description

Monitors:

  • DisplayName (of the monitor)
  • Name (mp monitor id)
  • Target (class the monitor targets)
  • Category
  • Enabled (true or false)
  • Alert (true or false)
  • AlertName (The display of the Alert Name as seen in the console)
  • Priority
  • Severity
  • Management Pack Display Name
  • Management Pack Name
  • Monitor Classification
  • Monitor Type
  • Description

 

 

image

3 Comments

  1. Sam Golan

    Hello, it is a very useful script, but I found 2 issues/problems using it.
    1. This script is not compatible with SCOM2007 R2
    2. It does not show me the threshold values of each monitor

    • Kevin Holman

      Not working in SCOM 2007 is a feature, not an issue! (kidding) Seriously though, SCOM 2007R2 extended support ends 7/9/2019. 🙂 The SDK has changed just a bit since then.

      On thresholds – that was never part of the design for this. Gathering thresholds is incredibly difficult. Only a tiny percentage of rules and monitors even have a concept of a “threshold”. Thats really a performance thing, which is only a fraction of monitors. Due to SCOM’s design, traversing a monitor design, then the monitortype, then each composite datasource containing other data sources, probe actions, etc…. would be a nightmare. This is why you don’t see a lot of tools that do that. It’s really hard. 🙂

  2. Divya

    Hi kevin,
    Great! I’m looking for a script which all results the collection frequency, threshold for the Scom performance rules. It would be very helpful.

Leave a Reply

Your email address will not be published. Required fields are marked *