Home > Operations Manager > Get a list of monitored URLs out of SCOM via PowerShell

Get a list of monitored URLs out of SCOM via PowerShell

Our URL monitors, imported using the BulkURL utility for SCOM have display names that contain the text URL.  The names of the monitors containing URL are unique and contain a list of SEVERAL urls being watched.  For example we have one monitor for SharePoint, which contains several URL’s of sharepoint sites, and another called SharePoint2 that contains several more URL’s.  The point is, you are going to query for the name of your parent monitor, then you can get all the URL’s that are contained in that parent monitor.

Find URL monitors if URL is in the monitor display name:

get-monitoringclass | where {$_.DisplayName -like “*URL*”} | FT Name

This will return only GUIDS, if created in console.  To get the display name you need to execute this:

get-monitoringclass | where {$_.DisplayName -like “*URL*”} | FT Name, DisplayName

Now from the list find the GUID and the display name of the actual monitor, not watcher node:





From those guids, you can now run the following command and dump a list of URLS:

get-monitoringobject -monitoringclass (get-monitoringclass -Name WebApplication_a34f8e5f51ac45558146e7a53ba1797b) | Select-object DisplayName | export-csv “My Location”

From what I could tell there are many ways to get urls into SCOM, but nothing out of the box to dump the monitors out of SCOM.  Powershell, of course is probably one of the best and fastest ways to achieve this.  Hat tip to Charles Champion for working with me on this.

  1. Jesty Sam
    June 30, 2015 at 2:03 am

    Is there a way to find the list of URL’s which are in not monitored state in my Web application folder.

    • November 16, 2016 at 8:45 am

      Not sure I understand the question. If you look at the URL monitors, any of them with a clear green circle would indicate that they are not being monitored.

  2. Grant C
    July 14, 2016 at 8:32 am

    Any ideas on doing this with SCOM 2012R2?
    I just want to dump all the individual URL Tests and their names…

    • November 16, 2016 at 8:44 am

      I haven’t tried and to be honest, this solution was provided to me via our MSFT contact. I found it helpful and thought it would be good to share it.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: