Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 34890

Part 6: Use VSAE fragments to add Alert, State, and Performance views to your MP

$
0
0

 

This is Part 6 in a series of posts described here:  https://blogs.technet.microsoft.com/kevinholman/2016/06/04/authoring-management-packs-the-fast-and-easy-way-using-visual-studio/

 

In our next example fragment – we will create a folder and views to see our monitoring data we have generated thus far.

 

Step 1:  Download and extract the sample MP fragments.  These are available here:  https://gallery.technet.microsoft.com/SCOM-Management-Pack-VSAE-2c506737

I will update these often as I enhance and add new ones, so check back often for new versions.

 

Step 2:  Open your newly created MP solution, and open Solution Explorer.  This solution was created in Part 1, and the class was created in Part 2.

 

Step 3:  Create a folder and add the fragment to it.

Create a folder called “Views” in your MP, if you don’t already have this folder.

image

 

Right click Views, and Add > Existing item.

Find the fragment named “Generic.Folder.State.Alert.Perf.Views.Fragment.mpx” and add it.

Select Generic.Folder.State.Alert.Perf.Views.Fragment.mpx in solution explorer to display the XML.

 

Step 4:  Find and Replace

Replace ##CompanyID## with our company ID which is “Fab

Replace ##AppName## with our App ID, which is “DemoApp

Replace ##ClassID## with the custom class we created in Part 2 of the series.  This was “Fab.DemoApp.Class” from our previous class fragment.

 

That took all of 2 minutes.  Take another few minutes to review the XML we have in this fragment.  It is a simple set of view definitions for Alerts, Performance, and State, along with DisplayStrings for displaynames for each.

 

 

 

Step 5:  Build the MP.   BUILD > Build Solution.

image

 

 

 

Step 6:  Import or Deploy the management pack.

image

 

 

Step 7:  Test the MP.

Open the Monitoring pane of the console – you will have a new folder and views:

 

image

 

From here you will see the alerts scoped to our custom app class, along with any performance and health state data for all discovered instances.

 

 

 

 

image[41]


Viewing all articles
Browse latest Browse all 34890

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>