How to create a monitor and subscribe to alerts for a portal using SCOM 2012

SCOM 2012 allows us to use two methods to monitor portals, also known as web sites, IIS installations, etc. Here’s a method I use which seems to work:

 

Setup the monitor for the specific portal:

  1. Open the Authoring console.
  2. Select Authoring | Management Pack Templates | Web Application Availability Monitoring.
  3. Right click and choose “Add Monitoring Wizard”.
  4. Select the “Web Application Availability Monitoring” monitoring type.
  5. Fill in the following details using this format:
 

In the “General” screen:

(When entering multiple URLs in one monitor, use a generic name which relates to the group of URLs)

Name: Web Application Availability [<Portal_Name>]
Description: Monitor the status of IIS for <Portal_Name>
Management Pack: BS_Web_Monitoring_Management_Pack

Click Next.

In the “What To Monitor” screen:

Name: <Portal_Name>
URL: <Portal_Address> (Use http:// or https://)

Note: You can add multiple URLs from a CSV file by clicking the “Add” button.

Click “Next”.

In the “Select locations from which you want the URLs monitored” screen:

· Click “Add”.
· In “Search For” select “Internal Location- Resource Pool”.
· Click “Search”.
· Select “AD Assignment Resource Pool”.
· Click “Add”.
· Click “OK”.

Click “Next”.

In the “View & Validate Tests” screen:

· Click “Change Configuration.

· Change the following items:

 

o Test Frequency = 5 minutes
o Alerts\Error- Transaction Response Time = Check, “Greater Than” & “0.5” seconds.
o Alerts\Warning- Transaction Response Time = Check, “Greater Than” & “0.25” seconds.
o Performance Collection\Response Time = Check.
o Performance Collection\TCP Connect Time = Check.
o Performance Collection\Download Time = Check.
o General Configuration\Evaluate Resource Health = Check.

· Click “OK”

Click “Next” then if the summary looks OK, click “Create”.

 

In order to associate the subscription to the monitor, we need to create a group for the monitor:

Create a group for the subscription to attach to:

  1. Open the Authoring\Groups console.
  2. Name: “Web Application Availability [<Portal_Name>]”.
  3. On the tab “Explicit members”, click “Add/RemoveObjects”.
  4. In “Filter by part of name”, enter the [<Portal_Name>]. Click Search.
  5. In the “Available Items” view, you will see about three items. Choose the one which resembles this:
    Name: Web Application Availability [<Portal_Name>]
    Full Name: Microsoft.SystemCenter.WebApplicationSolutions.SingleURLTest.<GUID>
    (This is the one with the icon which looks like a pair of glasses sitting on a blue box)
  6. Click Add.

 

Create the Subscription:

  1. Goto Administration\Subscriptions.
  2. New Subscription.
  3. Name: “Web Application Availability [<Portal_Name>]”.
  4. Raised by an instance of a specific group.
  5. Choose the group “Web Application Availability [<Portal_Name>]”
  6. Now setup your subscription details as to who and how to send out the email.
  7. Test, Test, Test the portal subscription by stopping and starting the physical portal.

 

The end result will be similar to this:

 

Subject: [New] [forecast.MyPortalServer.MyDomain.com [AD Assignment Resource Pool]] [2] Alert: Web Application Unavailable: {2}

Body:

 

Alert: Web Application Unavailable: {2}

Source: forecast.MyPortalServer.MyDomain.com [AD Assignment Resource Pool]

Path: Not Present

Last modified by: System

Last modified time: 2/8/2013 3:58:19 AM

Alert description: https://forecast.MyPortalServer.MyDomain.com has a problem. Please see the alert context tab for details of the failure. The Transaction Response Time was 2.46987947694984 seconds.

Alert view link: “http://MySCOM_MM_Server/OperationsManager?DisplayMode=Pivot&AlertID=%7bf0ed8c7a-aadf-4da6-a83d-d38f3f7617a2%7d

Notification subscription ID generating this message: {8D9B70E5-B640-0238-8BA6-99295D727238}

 

Note the {2} at the end of the Subject line? I cannot figger out what this represents except for the fact that it may be a piece of data which SCOM was not able to evaluate. If anyone knows what this is then let me know.

 

— JDMils

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.