StateView blog

Drag & Drop SCOM Authoring Meets Visio [Quick Guide]

20 jan, 2012

Hi,

I was one of the lucky one's that was able to test a couple of month ago the yesterday announced VISIO Management Pack Generator. It was difficult for me to NOT talk about this before because it was strictly given under NDA. So now the public word is out (thanks to Baelson).. Here it is….

First this: The screenshots may differ from the RTM version. And I am a bit in a hurry so this will be a non detailed post. Later I will do a deep dive if you want me to.

What is it ? :

With the SCOM Visio MP creator you can drag and drop your MP together. So visualize this one. Just open an Visio template and drag your monitoring targets in to it. Then drag your monitors or rules in to the sheet and connect them. Generate the MP and import it into SCOM. Simply that all , really I don’t lye.

What do you need in the basics:

  1. Visio 2010 Professional if you want only to drag and Drop the MP.
    or
    Visio 2010 Premium if you want also to generate the MP for SCOM import . This due to the schema validation features in premium.
  2. Installed SCOM console
  3. SCOM (2007/2012) Environment

.. the other requirements you can read in the documentation.

Hands on:

Open Visio and Create the new document

SNAGHTML45f48c

 

You will now see an empty MP document

SNAGHTML484605

Now we can start designing. In this example I will create an MP that will monitor an 2 tier application. So a webserver as frontend and an database as backend. The backend will be monitored with a DB watcher and the front end will be having a website watcher and a performance monitor with an threshold.

Go to the SCOM MP Shapes region. And select the Quick Shapes tab.

image

Now we select the 2-tier Application Model and drag & drop it into the document.

image

He see what happens , waauww . We have almost completed our Management Pack…

image

 

Now we have to customize the MP. Be sure to pin the properties windows on the right corner of the screenshot. This will be used to specify the parameter values used in the monitors/rules created.

First we select the MP shape on the left corner. Here we specify the MP name and version number.

image

Now awake readers will see that this template isn’t correct. The Front end role contains the DB watcher. This should be connected to the Backend role.

So we Simple delete the connector line

image

and move the shape and create an new connector line.

image

Next step is to add a new WEB site monitor to the front end role. This can be done by select the My front end Role shape and press on the blue arrow. Then select the web monitor icon.

image

The web monitor will be added and connected to the front end role target.
Next step is to specify what website to monitor. We select the just created Web site monitor shape and again we change the values in the parameter window.

image

We do the same for the Database Monitor

image

The result so far will be an MP that will monitor an Website and Database availability. Now of course we have to specify the targets for this monitors. This is done with a discovery. Just select the My front en role and the My Backend role and change the parameters. In this case the this will be an discovery based on Registry key  availability. Of course you will to create this reg keys on the servers to let the discovery do his work.

image

image

 

The almost end situation will be …..

image

But I am not ready jet. I want also to monitor an performance counter on the front end role. We simply drag and drop an performance Monitor in to the sheet … And yes again the word simply… normally I hate this word because I like the deep guru stuff…. Knipogende emoticon

image

 

image

We select the counter shape and change the property's

 image

Last step is to connect the shape to the correct front end role target.

This is done with the MP roll-up Monitor Connector shape. Drag and drop it on the sheet and connect the correct ends to the front en role and counter shape.

image

 Tatadaaaa . The end result will be:

image

 Last , yes really last , step is simply (again) press “Generate Management Pack”.

image

The Check Diagram will be executed first and will report any compilation errors. Fix the errors and press the “Check diagram” to check it again.

image

 If all errors are gone you can press “Generate Management Pack” again. And you will be asked for the save location of the MP.

SNAGHTML74479c

Supply it and press OK.

SNAGHTML74bcdb

Quickly go to this directory and you will see 2 files.

image

And you are done. Import it into your (LAB) SCOM environment.

Wait a moment , not so fast. We want prove !!!

Okay, Okay .. lets open the MP in to the MP authoring console. We will see all the generated Target classes , Views , Discovery's and Monitors. Really really simple!:

image

 image

 image

Now Open your SCOM console and import the MP.

image

Go to the Monitoring Pane and look at the generated views.

image

If you have now configured the correct Discovery Registry Keys and the Correct performance counter. You will see monitoring data coming in and Alerts coming out….

The End:

That was it for now …

Please let me know if you liked this blog and if you want more….

Happy scomming.

Michel Kamp

Monitoring van onder andere: