Active Directory MP version 6.0.7822.0 Released

Download: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=21357

 

The March 2012 revision of the Monitoring Pack for Active Directory includes the following changes:

  • Corrected some Publisher names (for example, changed from PublisherName=KDC to PublisherName=Microsoft-Windows-Kerberos-Key-Distribution-Center)
  • Updated rules to generate Alerts and not only go to the Event Viewer
  • Removed unnecessary check for Event Source Name for all NTDS rules (for example, removed EventSourceName=”NTDS General”)
  • Corrected event parameter validation
  • Updated queries to search for correct event IDs
  • Fixed spelling errors
  • Added missing descriptions to rules
  • Fixed problems with Health Monitoring scripts
  • Removed user name checks from Userenv rules

 

Continue Reading

Fix SCOM 2012 Install error “The version of SQL Server on this computer is either not supported or could not be validated because of an issue connecting to the WMI provider. “

 

clip_image002

Looking at the logs I see this

 

[10:30:32]:           Info:      :GetSqlVersion: Collecting SQL Instance information for vscomsql1
[10:30:34]:           Error:     :GetSqlVersion(): Threw Exception.Type: System.Management.ManagementException, Exception Error Code: 0x80131501, Exception.Message: Invalid class
[10:30:34]:           Error:     :StackTrace:   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode) at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext() at Microsoft.EnterpriseManagement.OperationsManager.Setup.Common.SetupValidationHelpers.GetSqlVersion(String sqlServerInstance)
[10:30:34]:           Always:                :Current Version of SQL=0.0   Required Version=10.1.0.0

   

Looking at http://technet.microsoft.com/en-us/library/hh205996.aspx I found this note

 

You might receive a message about having the wrong version of SQL Server, or you might encounter a problem with the SQL Server Windows Management Instrumentation (WMI) provider. To resolve this problem, open a Command Prompt window, select Run as administrator, and then run the following command. In the command, replace the <path> placeholder with the location of SQL Server:

mofcomp.exe <path>\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof”.

I tried running the “mofcomp.exe” command on the SQL Server but it doesn’t even seem to execute correctly.

 

mofcomp.exe "C:\Program Files\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof

 

clip_image002[4]

Finally I figured out what this issue was.  I was running the command using the wrong path.  Thinking it was a 64-bit OS and SQL 64-bit I assumed 64-bit path.  Turns out the command needs the x86 Path “C:\Program Files (x86)”

 

I ran the following command and this fixed my issue

mofcomp.exe "C:\Program Files (x86)\Microsoft SQL Server\100\Shared\sqlmgmproviderxpsp2up.mof

 

image

 

Continue Reading

Installing the SCOM 2012 Web Console prerequisites “the easy way”

 

*Note prerequisites may change when SCOM 2012 RTMs

I need the Web Server (IIS) role with the follow server role services:  According to http://technet.microsoft.com/en-us/library/hh205990.aspx#BKMK_RBF_WebConsole

  • Static Content
  • Default Document
  • Directory Browsing
  • HTTP Errors
  • HTTP Logging
  • Request Monitor
  • Request Filtering
  • Static Content Compression
  • Web Server (IIS) Support
  • IIS 6 Metabase Compatibility
  • ASP.NET
  • Windows Authentication

I could go to Server Manager and add the individual roles and features, but I am running Server 2008 R2 so lets make it super simple with PowerShell.

1. Launch the PowerShell command prompt

2. Run this command

Import-Module ServerManager

3. Press Enter

4. Run this command

Add-WindowsFeature NET-Framework-Core,Web-Static-Content,Web-Default-Doc,Web-Dir-Browsing,Web-Http-Errors,Web-Http-Logging,Web-Request-Monitor,Web-Filtering,Web-Stat-Compression,AS-Web-Support,Web-Metabase,Web-Asp-Net,Web-Windows-Auth –restart

5. Press Enter

image

 

I then see

 

6. If you already installed .net 4.0 then you will need to run this command from PowerShell to register IIS with .net 4.0

c:\windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_regiis.exe -r

image

 

7.  Now I need to enable IIS to work with .net 4.0

 

c:\windows\system32\inetsrv\appcmd set config /section:isapiCgiRestriction /[path=`’C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet_isapi.dll`’].allowed:True

 

image

 

A quick check of IIS and its it looks like it’s ready to go.

 

image

Continue Reading

MP2XMLPRO Management Pack Conversion Tool

 

MP2XMLPRO is a GUI based tool I created to export MP files to XML.

Currently you can do this with Boris’s PowerShell script or the MPDumper tool.  I only need to convert management packs once in a while and I often find myself wasting time trying to remember the correct syntax for these tools.  This new GUI based tool makes it simple.

 

Download: Link

image

Continue Reading

Custom URL management pack by Russ Slaten

Russ Slaten is an MP authoring expert and that created a custom URL monitoring solution.  This is my favorite solution as it addresses one of the most common issues that I have often heard from customers.  “Don’t alert me if the website is down for only one second.  Alert me if the website had be down for say five minutes”.  The solution is a little more difficult to setup initially but once you have it working adding and removing website is as easy as updating an excel spreadsheet.  You can even have the spreadsheet sit on a common file server so that people who have no clue how SCOM works can setup URL monitors.

I recommend installing this in your test lab first to get familiar with how it works.

 

So lets get started.  First I download the Management Pack.

Custom.Example.WebsiteWatcher.zip

 

**Note an updated the solution since this post to target Resource Pools in SCOM 2012**   Most of the configuration steps documented here still apply. 

Download Updated MP Supporting Resouce pools:  URLMonitoring.zip

 

I extract the files to see what’s in the zip file

There are two files in the zip package.  The first one is the management pack.  The second one is the CSV file for listing website to be monitored.

1

Now lets take a look at the management pack in MP Viewer

There are two classes.  The Website class and the Website Watcher Class
2

There are two discoveries.  One discovers which servers will be watcher nodes.  The other discovers what website to monitor.
3

There are three monitors. One “monitors whether a website is up or down”.  The second one “checks for a string in the response from an http request”.  The third one “Monitors the Performance of a Website”.  Seems easy enough
4

Also there is one relationship that ties the websites to the watcher nodes.
5

Let get this puppy installed.

I open the administration console and go Management Packs.  Right click and select Import Management Packs.

6

Then I go to Add and select Add from disk.  Click no to search for dependencies.

7

Now I browse to the folder that I extracted the files to and select the “Custom.Example.WebsiteWatcher.xml” file

8

I click Install,  and when its finished click Close

I have the Management Pack installed. Now I need to configure it for my environment. To keep it simple I am going to configure all my websites to be monitored from my RMS server.  This way I can avoid messing with run as accounts.

First I am going to copy the CSV file to a simple location on the RMS.  I created a folder on the RMS called c:\websitemonitoring and copied the “URLMonitoringList.csv” file there.

9

I open up the Operations Manager console and go to the Authoring Console and select Object Discoveries

10

Now I need to change my scope

11

I select Clear All at the bottom and then select View all targets.

12

Now I type in Website Watcher and click Select All then ok

13

As I seen before with the MP Viewer tool there are two discoveries in this management pack

14

I double click on the Discover Websites Discovery

15

I go to the configuration tab and I can see the discovery contains an interval on how often websites are discovered and a path to the file.

16

I click the edit button and copy and paste the location of my URLMonitoringList.csv which is “C:\websitemonitoring\URLMonitoringList.csv”

I am also going to change the interval to every 300 seconds for testing purposes.  Once I have my everything working I will change it back to one day or 86400 seconds

17

I click Ok and then Ok again.

Now I need to configure what server I will be monitoring the websites from.  In this case I will just be using the RMS.

I remote desktop into into the RMS and create a registry Key (not value) in HKLM\Software called “WebsiteWatcher”

I go the registry by typing regedit

17_1

Navigate to HKEY_LOCALMACHINE\Software

17_2

I right click and select New, Key

17_4

Then type in “WebsiteWatcher”

17_5

The discovery for this is set at once a day, while on the RMS I also cycled the System Center Management Services to speed up the discovery process. (I don’t recommend this in production)

17_6

Now I need to open the URLMonitoringList.csv and edit with excel. I set second column to my RMS server and save it.

17_7

Now I go to the Monitoring console and go to the Discovered Inventory view and select View All target and type in website.

18

19

I can see all the website have been discovered and are now being monitored.

20

Continue Reading

Bulk URL Editor

The Bulk URL Editor was introduced in SCOM 2007 R2.  I don’t often see this tool used as most customers don’t even know it exists or don’t understand the benefits of it.  The first benefit of the Bulk URL editor is that it scales to thousand of URLs.  If you were to try to create hundreds of URLs with the Web Application Templates it won’t work.  I have tried this in the past and there are so many workflows running at the same time that the agent fails and you end of not monitoring anything.   The second benefit of the tool is that you can add a bunch of websites in a few minutes. 

The Bulk URL Editor is not very intuitive, but once you understand how to use it the process is pretty easy.  If you haven’t used the tool I highly recommend giving it a try.

TechNet has some good documentation here. http://technet.microsoft.com/en-us/library/dd788987.aspx

 

To use the Bulk URL Editor I copy the tool from the installation media.  The file is stored in the “SupportTools\AMD64” directory

1

On my computer that has the SCOM console installed, I copy the “BulkUrlManager.exe” file to “C:\Program Files\System Center Operations Manager 2007” (If you copy it anywhere else it won’t work)

I double click on the “BulkUrlManager.exe” file.

On the Connect to Server dialog box I type in the name of my Root Management Server and click connect

2

I click the New Icon

3

I then type in a name of my website template.  I choose “Standard URL Monitoring”

3_5

Now I click Create a new Management Pack,

I then give the management pack the name. I choose “BUE Website Monitoring” and click OK

5

I click OK on the Add New Template Screen

On the next dialog box I click Yes, then OK

6

Under Templates I click the template I created called “Standard URL Monitoring”

7

Now I click Add

8

Now I simply add the URLs that I want to monitor (Note: You need to add http:// or https:// or it will fail)

9

I click OK and I see all of my URLs are attached to my Standard URL Monitoring Template

10

Now I simply hit save. I click yes to save the changes to the selected web template.

11

I am done in the Bulk URL Editor for now. But I am not finished setting up my URL monitoring.  I need to select where I want the URLs to be monitored from.

I launch the Operations Manager Console and go to the Authoring screen.

I expand out Web Application and right click to refresh the screen.

12

Now I see the website I created using the Bulk URL editor

Under the Actions pane, Custom Actions I click Edit web application settings

14

My website opens and all I see is a string of text that looks like a ugly variable.  (Don’t panic this is how it is supposed to look)

15

Now under the Actions Pane, under Web Application I click Configure settings

16

I click the Watcher Node tab and select the server I want to run the website monitoring.  I choose my RMS server.

18

I click OK and then click Apply at the bottom of the Web Application Editor screen

19

I then close the screen with the red X at the top right

Now I go back into the Bulk URL Editor.

I select the Template I have been working with and hit Synchronize

20

I click Yes,

21

I close the Bulk URL Editor as I am done with it.

Now I open the SCOM Monitoring Console and look for our Web Application, Standard URL Monitoring Instances.

I can see all my websites are now being monitored.

22

 

As you can see each website is its own object.  This I nice for putting them into maintenance mode putting them into groups.

I go to groups I can see that the Bulk URL editor also created a group.

23

Continue Reading

Web Application Management Pack Template

This is the most common way to monitor URLs.  If you only have a few websites to monitor then this solution works fine. But most organizations have a ton of internal and external websites. I would say if you are monitoring over 25 websites I would look at using the Bulk URL Editor or the custom solution by Russ Slaten

TechNet has some good documentation here. http://technet.microsoft.com/en-us/library/bb381370.aspx

 

Lets setup a basic website monitor for my blog using the Web Application Management Pack Template.

In the Authoring console I expand Management Pack Templates. I right click on Web Application and click Add Monitoring Wizard

1_thumb1

I select Web Application and then click next

2_thumb

For the name I like to give it a descriptive name like “Website – scom2k7.com”.  I like to put the “Website – “ in front of all my websites as it makes it easier later on.

Also I like to have at least one custom management pack to store all of my URL monitors in. If you are monitoring a lot of applications it will make sense to break them up into a few different management packs.

I click Next,

Now I type in the url of the website I want to monitor, in this case I type in “www.scom2k7.com.com” I click test to make sure that SCOM can access the URL I want to monitor. (Often times the test will timeout don’t worry if it does, just continue on as the test functionality doesn’t always seem to work.)

3_thumb

Now I need to pick my watcher node. This is where I want my website to be monitored from. If you are going to be monitoring a large number of websites, it is recommended to run these from a dedicated management server. The reason for this is that management servers write directly to the Ops DB. If you run all of your website monitoring from an agent, the agent has to monitor the website and then send the status to a management servers. Running the website monitoring directly from a management server avoids the middle man.

I also change the “Run this query” option to ten minutes. I think two minutes is too aggressive and causes excessive alerts. Most other URL monitoring tools I have seen use ten minutes as their default.

4_thumb

I click next and then click Create

5_thumb

I open the monitoring console and wait for it to show up under Web Application, Web Applications State

6_thumb

If I right click on my website and go to health explorer I can see that I am monitoring a lot more then just the website status.

7_thumb

 

Also if I go to groups I can see that the wizard automatically created a group called “Website – scom2k7.com watcher computers group”

8_thumb

Continue Reading

Thee ways to monitor websites with SCOM

There are three different ways to monitor a website with operations manager in SCOM.  Each of the different ways has its own pros and cons.

  1. Web Application Management Pack Template
  2. Bulk URL Editor or BUE
  3. Custom URL management pack by Russ Slaten

 

Web Application Management Pack Template

Pros:

  • Ease of Use
  • Integrated into the Console
  • Supported by MS Support

Cons:

  • Produces a lot of alerts
  • Not very scalable
  • Alerts are not very descriptive to what the actual issue is
  • Creates too many groups
  • Time consuming to setup a lot of websites

 

Bulk URL Editor

 

Pros:

  • Scales to 3,000 websites per management servers and 12,000 per management group
  • Saves time by importing a list of of multiple websites from a text file
  • Each URL creates its own instance so putting individual URLs in maintenance mode is easier
  • Less groups are created
  • Supported by MS Support

Cons:

  • Not Intuitive
  • Not integrated and requires an extra console to be copied for tool to be run
  • Produces a lot of alerts
  • Alerts are not very descriptive to what the actual issue is

 

Custom URL management pack by Russ Slaten

Pros:

  • Easy to add and remove websites
  • Reduces number of alerts by consolidating them and only alerting if website is really down.
  • Alerts are descriptive telling you exactly why the alert was created
  • Doesn’t create any extra groups
  • Doesn’t require extra console as everything is added and removed from an csv (Excel) document
  • Seems to scale well
  • Reduced administration as csv document can be modified by anyone with no knowledge of SCOM

Cons:

  • Not integrated in console
  • Initial setup of MP is more difficult
  • Logging of performance data is not possible but could be added
  • No MS Support if you have issues

 

In all actuality there is probably a ton of custom ways you can monitor a website with SCOM.  For simplicity I am just going to cover the three most common.

Continue Reading