Basic Creation and Discovery of a Class for Monitoring a Service

Simple definition of a Class:  Something you want to know information about and monitor things about.

  • Examples of Information you may want to know
    • What servers is this ‘class’ available on? (Discovery)
    • What version of the ‘class’
    • Where are the files that make up this ‘class’
      To Create a class:
  • Step 1:  Is this class a part of a larger application?  If so add it to that larger applications management pack.  If not, create a new management pack.

To Create a new management pack use the authoring console http://www.microsoft.com/downloads/details.aspx?FamilyId=6C8911C3-C495-4A03-96DF-9731C37AA6D7&displaylang=en

image

File –> New Management Pack

image

Now create the base class (abstract).  We will target all other classes for this Application at this class.  This will allow us more flexibility later

image 

image

Make it Abstract

image

Create new non-abstract class that inherits the base class.  This is the class we will use for actual monitor / discovery

image

image

image

image

image

So now we actually have a class.  The next step is to ‘discover’ where it is installed.  Easiest way to do this is by searching the registry on a group of servers.  Look for registry key under software.  You ‘can’ fall back onto looking at the ‘services’ area of the registry but for most applications you have multiple services you may want to monitor so its better to look for the larger applications registry area to define what role this server is actually playing.  Once you have found an acceptable registry key continue on.

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

image

Finish creating the monitor (Click OK)  Open Monitor to set recovery up

image

image

image

Save MP in non-sealed form.  Seal MP using our Key.  Export Sealed MP to production environment.

image

image

Open Sealed MP and export to management group

image

image

image

Use discovered inventory targeted at the new class to see instances of the new class (these are the servers you are now monitoring this on!)

image

image

image

This entry was posted in Generic SCOM Information, Management Pack Authoring. Bookmark the permalink.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s