Marcin@Work

System Center 2012 Operations Manager Tools and Management Packs

Map Dashboard in SC 2012 Operations Manager

Map Dashboard in SC 2012 Operations Manager

  • Comments 5
  • Likes

Today, I will show you how you can create a map dashboard that displays availability and monitoring data for configured Web Application Availability tests. I will walk you through the bare minimum steps needed to display a map dashboard with some useful data.

Prerequisites

To complete this tutorial, you will need the following:

  • A System Center 2012 Operations Manager management group with at least 1 agent and 1 management server.
  • A machine with the Operations Console installed.
  • 15-25 minutes of available time

Locations

All monitoring workflows that are run by Operations Manager are hosted by either an Agent or a Management Server. SC 2012 Operations Manager allows you to associate a location with the following:

  • One or more agents
  • One or more management servers
  • One or more resource pools

This is accomplished through PowerShell. Let’s open the Operations Manager Shell:

image

SCOM 2012 ships with several cmdlets to manage locations:

Cmdlet Name Description
Get-SCOMLocation This cmdlet can be used to list all the locations configured in a management group. It can also be used to obtain a location of a particular agent, management server, resource pool, or a managed entity.
New-SCOMLocation This cmdlet creates a new location with the specified display name, longitude and latitude.

Remove-SCOMLocation

This cmdlet removes an association between a location and a set of agents, management servers, or resource pools. It can also be used to remove the location from the management group.
Set-SCOMLocation This cmdlet associates an existing location with a set of agents, management servers, or resource pools in the management group.
Update-SCOMLocation This cmdlet updates the specified location with a new display name, longitude, or latitude.

Create New Locations

The environment I’m using to write this article consists of a management server and an agent. I will associate them with the following locations:

Display Name Latitude Longitude
Redmond, WA 47.6739882 -122.121512
Chicago, IL 41.850033 -87.6500523

To create the above locations, execute the following script in the shell:

PS C:\> New-SCOMLocation -DisplayName "Redmond, WA" -Latitude 47.6739882 -Longitude -122.121512

PS C:\> New-SCOMLocation -DisplayName "Chicago, IL" -Latitude 41.850033 -Longitude -87.6500523

To verify that the locations have been created successfully, execute the following:

PS C:\> Get-SCOMLocation

Your output should be similar to the following:

PS C:\> Get-SCOMLocation


Name                                         : 6775251e-c851-4a6f-b6ab-90faeb87d9a1
Path                                         :
DisplayName                                  : Redmond, WA
FullName                                     : System.GeoLocation:6775251e-c851-4a6f-b6ab-90faeb87d9a1
ManagementPackClassIds                       : {a7f774ed-534c-08af-2fbf-54cbe1745388}
LeastDerivedNonAbstractManagementPackClassId : a7f774ed-534c-08af-2fbf-54cbe1745388
TimeAdded                                    : 5/21/2012 7:28:07 PM
LastModifiedBy                               : 7431e155-3d9e-4724-895e-c03ba951a352
Values                                       : {6775251e-c851-4a6f-b6ab-90faeb87d9a1, 47.6739882, -122.121512, System.C
                                               onfigItem.ObjectStatusEnum.Active...}
LastModified                                 : 5/21/2012 7:28:08 PM
IsNew                                        : False
HasChanges                                   : False
Id                                           : 28409a53-d0c0-c163-2f4c-3d16b76de26c
ManagementGroup                              : marcin-mg
ManagementGroupId                            : 8f2d17ec-fe46-dded-0534-cdc8ad551e67

Name                                         : 314f1262-063a-4435-a479-d12b0387499b
Path                                         :
DisplayName                                  : Chicago, IL
FullName                                     : System.GeoLocation:314f1262-063a-4435-a479-d12b0387499b
ManagementPackClassIds                       : {a7f774ed-534c-08af-2fbf-54cbe1745388}
LeastDerivedNonAbstractManagementPackClassId : a7f774ed-534c-08af-2fbf-54cbe1745388
TimeAdded                                    : 5/21/2012 7:28:58 PM
LastModifiedBy                               : 7431e155-3d9e-4724-895e-c03ba951a352
Values                                       : {314f1262-063a-4435-a479-d12b0387499b, 41.850033, -87.6500523, System.Co
                                               nfigItem.ObjectStatusEnum.Active...}
LastModified                                 : 5/21/2012 7:28:58 PM
IsNew                                        : False
HasChanges                                   : False
Id                                           : 81e88875-f33e-c518-363d-5cdbf345c55c
ManagementGroup                              : marcin-mg
ManagementGroupId                            : 8f2d17ec-fe46-dded-0534-cdc8ad551e67

Associate Locations

Now that we have locations in our management group, let’s associate one of them with a management server and another with an agent. Execute the following in the shell:

PS C:\> $redmond = Get-SCOMLocation -DisplayName "Redmond, WA"
PS C:\> $chicago = Get-SCOMLocation -DisplayName "Chicago, IL"

Verify that $redmond variable is assigned by executing the following (your output should look similar):

PS C:\> $redmond


Name                                         : 6775251e-c851-4a6f-b6ab-90faeb87d9a1
Path                                         :
DisplayName                                  : Redmond, WA
FullName                                     : System.GeoLocation:6775251e-c851-4a6f-b6ab-90faeb87d9a1
ManagementPackClassIds                       : {a7f774ed-534c-08af-2fbf-54cbe1745388}
LeastDerivedNonAbstractManagementPackClassId : a7f774ed-534c-08af-2fbf-54cbe1745388
TimeAdded                                    : 5/21/2012 7:28:07 PM
LastModifiedBy                               : 7431e155-3d9e-4724-895e-c03ba951a352
Values                                       : {6775251e-c851-4a6f-b6ab-90faeb87d9a1, 47.6739882, -122.121512, System.C
                                               onfigItem.ObjectStatusEnum.Active...}
LastModified                                 : 5/21/2012 7:28:08 PM
IsNew                                        : False
HasChanges                                   : False
Id                                           : 28409a53-d0c0-c163-2f4c-3d16b76de26c
ManagementGroup                              : marcin-mg
ManagementGroupId                            : 8f2d17ec-fe46-dded-0534-cdc8ad551e67

Do the same for the $chicago variable.

Now, use the Get-SCOMAgent cmdlet to find an agent in your management group. Assign the agent to the $agent variable. Then, use the Get-SCOMManagementServer cmdlet to find a management server in your management group and assign the server to the $server variable. (These steps are specific to your own environment. I can’t provide you instructions that will work there.)

Verify that the $server and $agent variables are assigned.

Execute the following in the shell:

PS C:\> Set-SCOMLocation -Agent $agent -Location $chicago
PS C:\> Set-SCOMLocation -ManagementServer $server -Location $redmond

The locations should be associated correctly now. You can verify that by executing the following in the shell:

PS C:\> Get-SCOMLocation -ManagementServer $server
PS C:\> Get-SCOMLocation -Agent $agent

The output of either command should be a location object.

Web Application Availability Monitoring

By now, we have created the locations and associated them with a management server and an agent. Now we need to configure Web Application Availability monitoring.

Configure the monitoring

Let’s open the Operations Console and switch to the Authoring pane. Expand the Management Pack Templates tree and click on Web Application Availability Monitoring. Right-click on it and click Add Monitoring Wizard….

image

Make sure that Web Application Availability Monitoring is selected and click Next. On the next page, please enter a name for the template (I will use “My Monitoring”) and select an MP where the template will live.

image

Click Next when done. On the next page, please enter a name and a URL to monitor. I will use http://localhost, but feel free to use any internal or external URL.

image

Click Next when done. On the next page, click the Add… button to add a location from where you want the URL to be monitored. In the dialog that appears ensure that the Search for field is set to Internal location – Agent and click Search. Several locations will appear in the list:

image

Select two items that match the agent and server from the previous steps in this tutorial (specific to your environment). Once the two items are selected, click Add:

image

Click OK and then Next. On the next page, click Run Test to verify that the tests will work.

image

Click Close and then Next. Verify that everything is correct at the Summary page and click Create. You should see the new template in the Web Application Availability Monitoring folder:

image

View the Map Dashboard

Now that our monitoring is configured, let’s take a look at the map dashboard. In the Operations Console switch to the Monitoring pane and navigate to Application Monitoring \ Web Application Availability Monitoring folder and expand it. Click the Web Application Status dashboard in the folder. You may see something like this:

image

It may take some time for the monitoring to become active. Please wait until the dashboard looks like this:

image

Select My Monitoring and click the Summary Dashboard – Map link in the Tasks pane. This will open a new window that should be similar to this:

image

This dashboard is showing the locations from which Web Availability Monitoring tests are running from. If you recall from previous steps, we configured the tests to run from an agent and server that had geographic locations associated with them. This information is used to populate this dashboard.

If you zoom in a bit, you’ll see that the green checkmarks are located by Redmond, WA and Chicago, IL:

image

If you select one or more locations in the map (use Ctrl select to select multiple or deselect items), the Test Status portion of the dashboard will light up. Select the Chicago location:

image

Select the item in the Test Status table and click the Detailed Dashboard – List link in the Tasks pane. This will bring up a dashboard that displays performance data collected from Web Application Availability tests:

image

Select one or more locations and put a check mark by at least one of the items under Test Status. You should see something like this:

image

It may take some time for the data to appear in the dashboard.

Congratulations! You now know how to associate locations with agents and/or servers and how to display that information using the Summary Map Dashboard.

Comments
  • <p>Awesome post Marcin!</p> <p>Here is a link to my post, which is more focused on monitoring avaialbility aspect:</p> <p><a rel="nofollow" target="_new" href="http://blogs.technet.com/b/momteam/archive/2012/05/31/using-the-web-application-availability-monitoring-to-monitor-web-applications-health.aspx">blogs.technet.com/.../using-the-web-application-availability-monitoring-to-monitor-web-applications-health.aspx</a></p>

  • <p>Hello,</p> <p>When I try this command:</p> <p>PS C:\&gt; New-SCOMLocation -DisplayName &quot;Redmond, WA&quot; -Latitude 47.6739882 -Longitude -122.121512</p> <p>I receive an error message: Cannot bind parameter &#39;Latitude&#39;to the target. exception setting &quot;Latitude&quot;: &quot;Latitude&quot; At line:1a char:56</p> <p>Do you have any idea&#39;s?</p> <p>thanks in advance.</p>

  • <p>Dear Marcin, great post!</p> <p>Can You teach us also how to obtain an uptime monthly % report from a website uptime?</p> <p>Thank You</p> <p>Luca</p>

  • <p>Not sure. I would try typing the text manually. Perhaps some weird characters snuck in when copy/pasting?</p>

  • <p>Can you use that map but for servers like Exchange or DCs?</p>

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