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
File –> New Management Pack
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
Make it Abstract
Create new non-abstract class that inherits the base class. This is the class we will use for actual monitor / discovery
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.
Finish creating the monitor (Click OK) Open Monitor to set recovery up
Save MP in non-sealed form. Seal MP using our Key. Export Sealed MP to production environment.
Open Sealed MP and export to management group
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!)