PowerShell Script for Retrieving SCOM Monitor and Rule Configuration Details

Fneff-8591 140 Reputation points
2024-10-22T15:55:57.9633333+00:00

Hello,

As a new SCOM administrator, assistance is needed with PowerShell scripting. After upgrading to SCOM 2019, there is a requirement for reports containing monitor and rule configuration details for each server. Collecting this information individually from each server has proven challenging.

Could anyone provide a PowerShell script to help retrieve the monitor configuration details from a list of servers?

Any suggestions or guidance would be greatly appreciated.

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,492 questions
{count} votes

2 answers

Sort by: Most helpful
  1. anthony strother 501 Reputation points
    2024-10-22T16:49:49.8366667+00:00

    Hi,

    You can download and use this, from Kevin Holman. Always test these in your test environment before using in other tiers.

    https://kevinholman.com/2018/08/11/get-all-scom-rules-and-monitors-with-their-alert-details-to-a-csv/

    There is also a .xml that you can load into (your test environment first to ensure it works for you). It has a really good explanation of how to create the dashboard along with a download link at the bottom of the article.

    https://scombythomdotcom.wordpress.com/2014/06/04/rules-and-monitors-on-your-dashboard-part-2/

    Hope this helps you.

    0 comments No comments

  2. SChalakov 10,391 Reputation points MVP
    2024-10-23T07:45:11.9233333+00:00

    Hi,

    what you need is the SCOM Effective Monitoring Configuration Report. This will show you all discoveries, rules and monitors, initialized on a particular server or group of servers as well as all the their overrides, applied to that system or group of systems.

    Thre ready-to-use script is part of the SCOMHelper PowerShell Module:

    SCOM: Export Rules, Monitors, Overrides, Settings, Effective Monitoring Configuration with PowerShell

    Please check on that too:

    Script to export all effective configurations of Alert Rule in SCOM 2012 R2 & SCOM 2019

    In there Leon gives one more Link to an older version of the script.

    Hope this helps.


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Best regards,

    Stoyan

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.