<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
<title>Xplat Xperts</title>
<link>http://blog.xplatxperts.com/xplat-xperts/</link>
<description>This blog is all about using System Center Operations Manager in a cross platform world. As experts in this field - the authors - and BridgeWays - are a valuable resource for this field.</description>
<language>en-US</language>
<lastBuildDate>Sat, 06 Mar 2010 14:59:16 -0500</lastBuildDate>
<generator>http://www.typepad.com/</generator>

<docs>http://www.rssboard.org/rss-specification</docs>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/XplatXperts" /><feedburner:info uri="xplatxperts" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
<title>Writing Management Packs for SCOM: Adding Dashboards</title>
<link>http://feedproxy.google.com/~r/XplatXperts/~3/Wliqw_taUPI/writing-management-packs-for-scom-adding-dashboards.html</link>
<guid isPermaLink="false">http://blog.xplatxperts.com/xplat-xperts/2010/03/writing-management-packs-for-scom-adding-dashboards.html</guid>
<description>The next step in extending our custom MP is taking it beyond the monitors and performance views and cleaning it up so we can look at different metrics in logical groups. For an mP like Hyper-V you'll want to look at both the % Hypervisor Run Time and the % Guest Run Time in the same view so you can see how well they are comparing to one another. To build out a dashboard is pretty straight forward, you simply need to decide how you want to view the data. It's no different from building an HTML table, you specify...</description>
<content:encoded>&lt;p&gt;The next step in extending our custom MP is taking it beyond the monitors and performance views and cleaning it up so we can look at different metrics in logical groups.&amp;#0160; For an mP like Hyper-V you&amp;#39;ll want to look at both the % Hypervisor Run Time and the % Guest Run Time in the same view so you can see how well they are comparing to one another.&lt;/p&gt;
&lt;p&gt;To build out a dashboard is pretty straight forward, you simply need to decide how you want to view the data.&amp;#0160; It&amp;#39;s no different from building an HTML table, you specify the number of columns and rows then assign a performance view to each cell.&lt;/p&gt;
&lt;p&gt;For the example, I&amp;#39;m going to create a Dashboard that combines 4 performance views into a 2 x 2 grid.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b01310f716e5a970c-pi" style="DISPLAY: inline"&gt;&lt;img alt="Blog-CreateDashboard" border="0" class="asset asset-image at-xid-6a01157122d260970b01310f716e5a970c image-full " src="http://blog.xplatxperts.com/.a/6a01157122d260970b01310f716e5a970c-800wi" title="Blog-CreateDashboard" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Using the Authoring Console:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to Presentation-&amp;gt;Views&lt;/li&gt;
&lt;li&gt;Right Click the Views pane and select New-&amp;gt;Custom View&lt;/li&gt;
&lt;li&gt;Give the dashboard an ID such as BridgeWays.Windows.HyperV.LogicalProcessor.Dashboard&lt;/li&gt;
&lt;li&gt;Give it a friendly name such as Logical Processors&lt;/li&gt;
&lt;li&gt;Set the Target to System.Entity&lt;/li&gt;
&lt;li&gt;Click on the Configuration tab and click Browse for a type&lt;/li&gt;
&lt;li&gt;Select Microsoft.SystemCenter.DashboardViewType from the list and click OK&lt;/li&gt;
&lt;li&gt;Click Edit... on the Configuration page to launch our XML editor&lt;/li&gt;
&lt;li&gt;The XML is pretty straight forward, set the &amp;lt;PanelConfiguration&amp;gt; XML to be:&lt;br /&gt;&amp;lt;PanelConfiguration Column=&amp;quot;2&amp;quot; Row=&amp;quot;2&amp;quot;&amp;gt;&lt;br /&gt;&amp;#0160; &lt;cell &lt;span="&amp;lt;span" class="yui-spellcheck" column="1" row="1"&gt;ViewID=&amp;quot;BridgeWays.Windows.HyperV.LP.TotalRunTime.Perf&amp;quot;&amp;gt;&lt;/cell&gt;&lt;br /&gt;&amp;#0160; &lt;cell &lt;span="&amp;lt;span" class="yui-spellcheck" column="1" row="1"&gt;ViewID=&amp;quot;BridgeWays.Windows.HyperV.LP.HypervisorRunTime.Perf&amp;quot;&amp;gt;&lt;/cell&gt;&lt;br /&gt;&amp;#0160; &lt;cell &lt;span="&amp;lt;span" class="yui-spellcheck" column="1" row="1"&gt;ViewID=&amp;quot;BridgeWays.Windows.HyperV.LP.IdleRunTime.Perf&amp;quot;&amp;gt;&lt;/cell&gt;&lt;br /&gt;&amp;#0160; &lt;cell &lt;span="&amp;lt;span" class="yui-spellcheck" column="1" row="1"&gt;ViewID=&amp;quot;BridgeWays.Windows.HyperV.LP.GuestRunTime.Perf&amp;quot;&amp;gt;&lt;/cell&gt;&lt;br /&gt;PanelConfiguration&amp;gt;&lt;/li&gt;
&lt;li&gt;Close the editor&lt;/li&gt;
&lt;li&gt;Select the Folder tab and click the folder you want the performance view to be in.&lt;/li&gt;
&lt;li&gt;Click OK&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Let&amp;#39;s deconstruct the XML a little, all I&amp;#39;ve done is defined a 2x2 grid with the &amp;lt;PanelConfiguration&amp;gt; element attributes.&amp;#0160; Then I specified which performance view to put in each cell.&amp;#0160; That&amp;#39;s it, pretty straight forward and once we saved it we&amp;#39;re done... almost.&lt;/p&gt;
&lt;p&gt;Since we&amp;#39;ve build a dashboard showing 4 performance views there isn&amp;#39;t much point in having both the dashboard and the performance views in the same folder.&amp;#0160; So the last thing I would do is open the properties dialog for each contained performance view, go to the Options tab and toggle Visible to &amp;quot;false&amp;quot;.&amp;#0160; Now we&amp;#39;ll only see the Dashboard that was created.&lt;/p&gt;
&lt;p&gt;So how does our dashboard look when we add it to the MP?&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a90ad2ef970b-pi" style="DISPLAY: inline"&gt;&lt;img alt="Blog-Dashboard" border="0" class="asset asset-image at-xid-6a01157122d260970b0120a90ad2ef970b image-full " src="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a90ad2ef970b-800wi" title="Blog-Dashboard" /&gt;&lt;/a&gt;&amp;#0160;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;At this point, you should have a pretty good handle on building monitors, performance views and dashboards.&amp;#0160; These are the basic building blocks of MPs and the key&amp;#0160;here is to remember you can build these to extend existing MPs as well as for making your own MPs from scratch.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-managements-packs-for-scom-a-more-robust-hyperv-mp.html"&gt;&lt;/a&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-a-more-robust-hyperv-mp.html"&gt;Part 1: Getting Started with writing a more robust Hyper-V MP&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-your-own-monitors.html"&gt;Part 2: Adding your own Monitors&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-rules.html"&gt;Part 3: Adding Rules and Performance Views&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/03/writing-management-packs-for-scom-adding-dashboards.html"&gt;Part 4: Adding Dashboards&lt;/a&gt;&lt;/p&gt;</content:encoded>



<dc:creator>Michael Guthrie</dc:creator>
<pubDate>Sat, 06 Mar 2010 14:59:16 -0500</pubDate>

<feedburner:origLink>http://blog.xplatxperts.com/xplat-xperts/2010/03/writing-management-packs-for-scom-adding-dashboards.html</feedburner:origLink></item>
<item>
<title>New BridgeWays Betas: WebSphere, WebLogic and Generic JVM monitoring with SCOM</title>
<link>http://feedproxy.google.com/~r/XplatXperts/~3/LIB28wxmiLQ/new-bridgeways-betas-websphere-weblogic-and-generic-jvm-monitoring-with-scom.html</link>
<guid isPermaLink="false">http://blog.xplatxperts.com/xplat-xperts/2010/03/new-bridgeways-betas-websphere-weblogic-and-generic-jvm-monitoring-with-scom.html</guid>
<description>Some great news from the BridgeWays side of things, we just released 3 new Beta management packs: BridgeWays Management Pack for WebSphere Application Servers BridgeWays Management Pack for WebLogic Servers BridgeWays Template for Java Attributes These 3 MPs all use our JMX collector technology that allows us to connect to and consume data from JEE servers that is exposed via JMX. The template is very exciting because it allows you not only to monitor generic JVMs, but it also allows you to consume any MBean no matter what the JVM and that means you can start to monitor the JMX...</description>
<content:encoded>&lt;p&gt;Some&amp;#0160;great news from the BridgeWays side of things, we just released 3 new Beta management packs:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;BridgeWays Management Pack for WebSphere Application Servers&lt;/li&gt;
&lt;li&gt;BridgeWays Management Pack for WebLogic Servers&lt;/li&gt;
&lt;li&gt;BridgeWays Template for Java Attributes&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;These 3 MPs all use our JMX collector technology that allows us to connect to and consume data from JEE servers that is exposed via JMX.&amp;#0160; The template is very exciting because it allows you not only to monitor generic JVMs, but it also allows you to consume any MBean no matter what the JVM and that means you can start to monitor the JMX instrumented application running on top of the common JEE servers like JBoss, WebSphere, WebLogic and even Tomcat.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b01310f55de7d970c-pi" style="DISPLAY: inline"&gt;&lt;img alt="WebSphere" border="0" class="asset asset-image at-xid-6a01157122d260970b01310f55de7d970c image-full " src="http://blog.xplatxperts.com/.a/6a01157122d260970b01310f55de7d970c-800wi" title="WebSphere" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;The WebSphere and WebLogic MPs provide you with preconfigured monitoring on the application servers, pulling in the server load, JDBC connections, thread pools and other metrics required to ensure the JEE servers are healthy.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b01310f55df25970c-pi" style="DISPLAY: inline"&gt;&lt;img alt="JavaAttributes" border="0" class="asset asset-image at-xid-6a01157122d260970b01310f55df25970c image-full " src="http://blog.xplatxperts.com/.a/6a01157122d260970b01310f55df25970c-800wi" title="JavaAttributes" /&gt;&lt;/a&gt;&amp;#0160;&lt;/p&gt;
&lt;p&gt;The Java Template MP can be used along side the JEE Application server MP or to&amp;#0160;discover and configure monitoring of any generic JVM.&amp;#0160; The MP includes a&amp;#0160;standard&amp;#0160;SCOM template that you can use to specify mbean attributes to monitor and build performance views for.&lt;br /&gt;&amp;#0160;&lt;br /&gt;If you are interested in more information on these new MPs, please contact &lt;a href="mailto:sales@bridgeways.ca"&gt;sales@bridgeways.ca&lt;/a&gt;&lt;/p&gt;</content:encoded>


<category>BridgeWays</category>
<category>Management Packs</category>
<category>SCOM</category>

<dc:creator>Michael Guthrie</dc:creator>
<pubDate>Tue, 02 Mar 2010 21:25:54 -0500</pubDate>

<feedburner:origLink>http://blog.xplatxperts.com/xplat-xperts/2010/03/new-bridgeways-betas-websphere-weblogic-and-generic-jvm-monitoring-with-scom.html</feedburner:origLink></item>
<item>
<title>Writing Management Packs for SCOM: Adding Rules and Performance Views</title>
<link>http://feedproxy.google.com/~r/XplatXperts/~3/V2RJlQKRoes/writing-management-packs-for-scom-adding-rules.html</link>
<guid isPermaLink="false">http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-rules.html</guid>
<description>So where are we... we've built out our MP, added a state view and added monitors to the objects discovered. Now we want to collect information that we can build some performance views and store it in the datawarehouse so we can report on it. Once again, open up the Authoring Console (I'm trying to do as much as I can through the console), goto the Health Model tab and select the Rules object. Let's add a new Rule: Right click and select New-&gt;Collection-&gt;Performance Based-&gt;Windows Performance Collection Give our rule a name, I'm going to gather Logical Process Hypervisor Run...</description>
<content:encoded>&lt;p&gt;So where are we... we&amp;#39;ve built out our MP, added a state view and added monitors to the objects discovered. Now we want to collect information that we can build some performance views and store it in the datawarehouse so we can report on it.&lt;/p&gt;
&lt;p&gt;Once again, open up the Authoring Console (I&amp;#39;m trying to do as much as I can through the console), goto the Health Model tab and select the Rules object.&amp;#0160; &lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b01287796ac56970c-pi" style="DISPLAY: inline"&gt;&lt;img alt="Hyper-V Rules Frame" border="0" class="asset asset-image at-xid-6a01157122d260970b01287796ac56970c image-full " complete="true" src="http://blog.xplatxperts.com/.a/6a01157122d260970b01287796ac56970c-800wi" title="Hyper-V Rules Frame" /&gt;&lt;/a&gt;&amp;#0160;&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s add a new Rule:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click and select New-&amp;gt;Collection-&amp;gt;Performance Based-&amp;gt;Windows Performance Collection&lt;/li&gt;
&lt;li&gt;Give our rule a name, I&amp;#39;m going to gather Logical Process Hypervisor Run Time so I&amp;#39;ll name my rule BridgeWays.Windows.HyperV.LP.HypervisorRunTime&lt;/li&gt;
&lt;li&gt;Give it a friendly display name, Logical Processor Hypervisor Run Time&lt;/li&gt;
&lt;li&gt;Set the target, for me it&amp;#39;s Microsoft.Windows.HyperV.ServerRole&lt;/li&gt;
&lt;li&gt;Click next&lt;/li&gt;
&lt;li&gt;Now we specify the perfmon counter we want to gather, Object = Hyper-V Hypervisor Logical Processor, Counter = % Hypervisor Run Time, Instance is empty and check the &amp;quot;Include all instances...&amp;quot; check box.&lt;/li&gt;
&lt;li&gt;Set the time interval, 15 minutes is the minimum you should start with&lt;/li&gt;
&lt;li&gt;Click Next&lt;/li&gt;
&lt;li&gt;Optimized vs. Non-Optimized... it really comes down to your tolerance for &amp;#39;real time&amp;#39; data.&amp;#0160; If you hate seeing missed polls (ie no data returned for 30 minutes because the data hasn&amp;#39;t changed), don&amp;#39;t use Optimized collection.&amp;#0160; If you&amp;#39;d like to reduce the amount of data flowing over the network,&amp;#0160;use optimized.&lt;/li&gt;
&lt;li&gt;Click Finished&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&amp;#39;s it, we&amp;#39;ve created a rule.&amp;#0160; &lt;/p&gt;
&lt;p&gt;Rules are used to collect data and store it out so that other things, like Performance Views, can consume the data and present it to the user.&lt;/p&gt;
&lt;p&gt;So while we&amp;#39;ve created a rule, now we need to create a performance view that uses that rule.&lt;/p&gt;
&lt;p&gt;To build the performance view we need to switch to the Presentation tab and click on the Views object.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a8941e6b970b-pi" style="DISPLAY: inline"&gt;&lt;img alt="Hyper-V Perf View" border="0" class="asset asset-image at-xid-6a01157122d260970b0120a8941e6b970b image-full " complete="true" src="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a8941e6b970b-800wi" title="Hyper-V Perf View" /&gt;&lt;/a&gt;&amp;#0160;&lt;/p&gt;
&lt;p&gt;First thing is to create a nice folder hierarchy to put our views into.&amp;#0160; I created two folders, Performance and Processor so that my folder hierarchy in SCOM looks like:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a89421ce970b-pi" style="DISPLAY: inline"&gt;&lt;img alt="Hyper-V Processor Folder" border="0" class="asset asset-image at-xid-6a01157122d260970b0120a89421ce970b " complete="true" src="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a89421ce970b-800wi" title="Hyper-V Processor Folder" /&gt;&lt;/a&gt; &lt;br /&gt;Now to create out Performance View:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right Click, New-&amp;gt;Performance View&lt;/li&gt;
&lt;li&gt;Give it a name, I use BridgeWays.Windows.HyperV.LP.HypervisorRunTime.Perf (I simply mimic the rule name and add .Perf)&lt;/li&gt;
&lt;li&gt;Give it a friendly display name, Logical Processor Hypervisor Run Time&lt;/li&gt;
&lt;li&gt;Select the target, Microsoft.Windows.HyperV.ServerRole&lt;/li&gt;
&lt;li&gt;&amp;#0160;Click finish&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;So, are you done?&amp;#0160; nope, that little wizard didn&amp;#39;t really do all that much. Now we have to actually create the tie from the View to the Rule.&amp;#0160; &lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click the view, select Properties, goto the Configuration tab&lt;/li&gt;
&lt;li&gt;You&amp;#39;ll see an interesting dialog showing Criteria... click Edit&lt;/li&gt;
&lt;li&gt;Specify the editor you want to use (you can make this permanent using the Tools-&amp;gt;Options dialog), I use Visual Studio whose default install path is C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe&lt;/li&gt;
&lt;li&gt;Time for the voodoo, you can find most of the Schema items in the authoring guide, in this case we&amp;#39;re going to tie our view to the perfmon counter we collect in our rule so we need to specify that in the XML using:&lt;br /&gt;&amp;lt;Criteria&amp;gt;&lt;br /&gt;&amp;#0160; &amp;lt;Object&amp;gt;Hyper-V&amp;#0160;Hypervisor Logical Processor&lt;br /&gt;&amp;#0160; &amp;lt;Instance /&amp;gt;&lt;br /&gt;&amp;#0160; &amp;lt;Counter&amp;gt;&lt;counter&gt;&lt;/counter&gt;% Hypervisor Run Time&amp;lt;/Counter&amp;gt;&lt;br /&gt;&amp;lt;/Criteria&amp;gt;&lt;/li&gt;
&lt;li&gt;Close the editor&lt;/li&gt;
&lt;li&gt;Click the folder tab and ensure that the right folder is selected, I select the BridgeWays.Windows.HyperV.Processor only&lt;/li&gt;
&lt;li&gt;Click Options and make the view public&lt;/li&gt;
&lt;li&gt;Click OK&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Ok, now we&amp;#39;re done.&amp;#0160; It would actually be pretty easy if the console would simply allow you to select the rule and it auto-magically generated the XML... but we&amp;#39;re not that lucky yet.&lt;/p&gt;
&lt;p&gt;In the end we have a performance view, showing up in the tree.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b01287796c9af970c-pi" style="DISPLAY: inline"&gt;&lt;img alt="Hyper-V Processor Perf" border="0" class="asset asset-image at-xid-6a01157122d260970b01287796c9af970c image-full " complete="true" src="http://blog.xplatxperts.com/.a/6a01157122d260970b01287796c9af970c-800wi" title="Hyper-V Processor Perf" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;You can repeat this process to build additional Rules and Performance views on those rules.&amp;#0160; Once that is done it&amp;#39;s time to combine those views into Dashboards... we&amp;#39;ll go over that another time.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-managements-packs-for-scom-a-more-robust-hyperv-mp.html"&gt;&lt;/a&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-a-more-robust-hyperv-mp.html"&gt;Part 1: Getting Started with writing a more robust Hyper-V MP&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-your-own-monitors.html"&gt;Part 2: Adding your own Monitors&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-rules.html"&gt;Part 3: Adding Rules and Performance Views&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/03/writing-management-packs-for-scom-adding-dashboards.html"&gt;Part 4: Adding Dashboards&lt;/a&gt;&lt;/p&gt;</content:encoded>


<category>Hyper-V</category>
<category>SCOM</category>

<dc:creator>Michael Guthrie</dc:creator>
<pubDate>Mon, 15 Feb 2010 19:19:34 -0500</pubDate>

<feedburner:origLink>http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-rules.html</feedburner:origLink></item>
<item>
<title>Writing Management Packs for SCOM: Adding your own Monitors</title>
<link>http://feedproxy.google.com/~r/XplatXperts/~3/hzpTca4roNY/writing-management-packs-for-scom-adding-your-own-monitors.html</link>
<guid isPermaLink="false">http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-your-own-monitors.html</guid>
<description>In the first part of this series we got our toolset setup so that we can write our own MP, created a root folder and added a state view to duplicate the Hyper-V Server Role state view. Now it's time to start adding our own extensions to the base Hyper-V MP, keep in mind that what I'm doing here will work with any management pack, including the BridgeWays MPs where we may be exposing data but only consuming it through rules and you want to add a monitor. So open up the Authoring Console and goto the Health Model frame....</description>
<content:encoded>&lt;p&gt;In the first part of this series we got our toolset setup so that we can write our own MP, created a root folder and added a state view&amp;#0160;to duplicate the Hyper-V Server Role state view.&amp;#0160;&lt;/p&gt;
&lt;p&gt;Now it&amp;#39;s time to start adding our own extensions to the base Hyper-V MP, keep in mind that what I&amp;#39;m doing here will work with any management pack, including the BridgeWays MPs where we may be exposing data but only consuming it through rules&amp;#0160;and you want to add a monitor.&lt;/p&gt;
&lt;p&gt;So open up the Authoring Console and goto the Health Model frame.&amp;#0160; You&amp;#39;ll see that we have the option to add Discoveries (we don&amp;#39;t need these right now&amp;#0160;because the base Hyper-V MP is doing this for us), Monitors, Rules, Service Levels, etc.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a893e35c970b-pi" style="DISPLAY: inline"&gt;&lt;img alt="Hyper-V Monitors Frame" border="0" class="asset asset-image at-xid-6a01157122d260970b0120a893e35c970b image-full " src="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a893e35c970b-800wi" title="Hyper-V Monitors Frame" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Let&amp;#39;s create a new monitor:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right-Click the view frame and select New-&amp;gt;Windows Performance-&amp;gt;Static Threshold-&amp;gt;Average Threshold to create a new monitor that will take the average of a series of polls and determine Health/Error state from that average value&lt;/li&gt;
&lt;li&gt;Provide a new name, I&amp;#39;m going to build an alert for the number of Virtual Machines being reported as in a critical state, so my name is VMsCritical&lt;/li&gt;
&lt;li&gt;Give the monitor a display name &amp;quot;Virtual Machines are Critical&amp;quot; &lt;/li&gt;
&lt;li&gt;Specify the target by clicking the ellipses, selecting list and finding hyper.&amp;#0160; I set the target to Microsoft.Windows.HyperV.ServerRole so that the monitor will run against any Hyper-V Server&lt;/li&gt;
&lt;li&gt;Set the Parent Monitor to be System.Health.PerformanceState.&amp;#0160; This is because I feel VMs in a critical state is a resource issue causing bad performance, it&amp;#39;s not necessarily an Availability issue because the VMs are running.&lt;/li&gt;
&lt;li&gt;Click Next&lt;/li&gt;
&lt;li&gt;Now, we set the object we&amp;#39;re going to monitor.&amp;#0160; You can either hit the Select button and search for the appropriate perfmon counter through the dialog that pops up or enter the data directly.&amp;#0160; For this counter it is:&amp;#0160; Object = Hyper-V Virtual Machine Health Summary, Counter = Health Critical, Instance is blank.&lt;/li&gt;
&lt;li&gt;Set an appropriate interval for the monitor, 5 minutes is the lowest you should go.&lt;/li&gt;
&lt;li&gt;Click Next&lt;/li&gt;
&lt;li&gt;Set our threshold, I use 1 because I want to know if&amp;#0160;even a single&amp;#0160;VM is critical&lt;/li&gt;
&lt;li&gt;Set our number of samples, I use 2 if a VM goes critical and then clears the next poll... I&amp;#39;m fine with that, the problem was a blip.&lt;/li&gt;
&lt;li&gt;Click finish and we&amp;#39;re almost done.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;We&amp;#39;ve created the base monitor, now we just need to do a little tweaking to make it be everything we want it to be.&amp;#0160; To finish things off, select the monitor and click properties.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b012877968b2b970c-pi" style="DISPLAY: inline"&gt;&lt;img alt="Hyper-V VMs Critical" border="0" class="asset asset-image at-xid-6a01157122d260970b012877968b2b970c image-full " height="556" src="http://blog.xplatxperts.com/.a/6a01157122d260970b012877968b2b970c-800wi" style="WIDTH: 85.11%" title="Hyper-V VMs Critical" /&gt;&lt;/a&gt;&amp;#0160;&lt;br /&gt;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Goto to the Health Tab and change the Over Threshold Health state to be Critical, I do this because I view VMS being critical as a Critical alarm.&lt;/li&gt;
&lt;li&gt;Click on the Alerting tab and select Generate alerts for this monitor, you can also tweak the priority and severity which helps you sort alerts in custom alert views where you may only want to see Critical alerts shown.&lt;/li&gt;
&lt;li&gt;Click on the Options tab and change Accessibility to &amp;quot;Public&amp;quot; so that you can make future MPs that extend this MP and people can add Diagnostic and Recovery tasks to the monitor without having to be part of this MP directly.&lt;/li&gt;
&lt;li&gt;Click on Product Knowledge, Edit and this will launch Word, if you have it and visual studio installed, so you can create a KB article.&amp;#0160;&lt;/li&gt;
&lt;li&gt;Goto the word document that launched and add some knowledge base information about the monitor, why it would fire, and how to fix it.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now that we&amp;#39;ve done that, save your MP.&amp;#0160; Import the new version into SCOM and see how the monitor shows up under the Performance &lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a893fba2970b-pi" style="DISPLAY: inline"&gt;&lt;img alt="Hyper-V Health Model" border="0" class="asset asset-image at-xid-6a01157122d260970b0120a893fba2970b image-full " src="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a893fba2970b-800wi" title="Hyper-V Health Model" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Repeat this process to add any additional monitors you may wish to have.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-managements-packs-for-scom-a-more-robust-hyperv-mp.html"&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-a-more-robust-hyperv-mp.html"&gt;Part 1: Getting Started with writing a more robust Hyper-V MP&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-your-own-monitors.html"&gt;Part 2: Adding your own Monitors&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-rules.html"&gt;Part 3: Adding Rules and Performance Views&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/03/writing-management-packs-for-scom-adding-dashboards.html"&gt;Part 4: Adding Dashboards&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;</content:encoded>


<category>Operations Manager</category>
<category>Technology</category>

<dc:creator>Michael Guthrie</dc:creator>
<pubDate>Fri, 12 Feb 2010 16:02:07 -0500</pubDate>

<feedburner:origLink>http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-your-own-monitors.html</feedburner:origLink></item>
<item>
<title>Writing Management Packs for SCOM: A more robust Hyper-V MP</title>
<link>http://feedproxy.google.com/~r/XplatXperts/~3/H3SfumzfMgs/writing-management-packs-for-scom-a-more-robust-hyperv-mp.html</link>
<guid isPermaLink="false">http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-a-more-robust-hyperv-mp.html</guid>
<description>Have you ever been looking at a management pack and wishing it was collecting just a little more information for you? You're not the only one, there are quite a few people who write MPs from scratch to support applications they are running, but there are more who are still a little leery of going down the path of MP Authoring. In the next series of posts I'm going to walk through extending the base Hyper-V management pack so that it provides more information around how healthy the servers really are. Tools of the trade: System Center Operations Manager 2007...</description>
<content:encoded>&lt;p&gt;Have you ever been looking at a management pack and wishing it was collecting just a little more information for you?&amp;#0160; You&amp;#39;re not the only one, there are quite a few people who write MPs from scratch to support applications they are running, but there are more who are still a little leery of going down the path of MP Authoring.&amp;#0160; In the next series of posts I&amp;#39;m going to walk through extending the base Hyper-V management pack so that it provides more information around how healthy the servers really are.&amp;#0160; &lt;/p&gt;
&lt;p&gt;Tools of the trade:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;System Center Operations Manager 2007 R2 Authoring Console:&amp;#0160;I&amp;#39;m going to&amp;#0160;focus on writing the MP using the Authroing console as opposed ot raw XML,&amp;#0160;it&amp;#39;s a good tool to use when you want to build out quick Windows based monitors, validate the XML schema, and see all the views you have created. &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9104af8b-ff87-45a1-81cd-b73e6f6b51f0&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=9104af8b-ff87-45a1-81cd-b73e6f6b51f0&amp;amp;displaylang=en&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;XML editor: trying to make things like Dashboards. Performance views and a few other&amp;#0160;components&amp;#0160;still require that you write raw XML, so you&amp;#39;ll need an editor which can be nothing more than notepad if you wish, I use&amp;#0160;Visual Studio&lt;/li&gt;
&lt;li&gt;Authoring Guide:&amp;#0160;keep it handy so you can make reference to it when some of the XML layout makes you want to scream. &lt;a href="http://technet.microsoft.com/en-us/opsmgr/bb498235.aspx"&gt;http://technet.microsoft.com/en-us/opsmgr/bb498235.aspx&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Install the SCOM console on the system you will be doing the authoring on&lt;/li&gt;
&lt;li&gt;To make writting KB articles a bit easier, install Visual Studio and Word on the system you will be using to author the MPs.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now let&amp;#39;s run through the steps to get things setup:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Get a copy of the MP you want to extend, you do this by downloading the manual install package as opposed to installing the MP via the SCOM catalog.&amp;#0160; For Hyper-V you can get the installer at: &lt;a href="http://www.microsoft.com/DownLoads/details.aspx?familyid=502E7A26-2FEA-4052-89FD-8F75142DE4F2&amp;amp;displaylang=en"&gt;http://www.microsoft.com/DownLoads/details.aspx?familyid=502E7A26-2FEA-4052-89FD-8F75142DE4F2&amp;amp;displaylang=en&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Run the installer and extract the sealed MPs to a local path like c:\authoring\dependencies&lt;/li&gt;
&lt;li&gt;Launch the Authoring Console&lt;/li&gt;
&lt;li&gt;Select File-&amp;gt;New.. Empty Management Pack&lt;/li&gt;
&lt;li&gt;Give your MP a name, I used BridgeWays.Windows.HyperV&lt;/li&gt;
&lt;li&gt;Give your new MP a Display Name, such as &amp;quot;BridgeWays Windows Hyper-V&amp;quot;&lt;/li&gt;
&lt;li&gt;Create&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;You now have an unsaved shell Management Pack that does nothing.&amp;#0160; So let&amp;#39;s set it up to extend the core Hyper-V MP:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Click Tools-&amp;gt;Options...&lt;/li&gt;
&lt;li&gt;Go to the references tab and add in the System Center directory and the directory where you put the Hyper-V MP.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b01287763f4ef970c-pi" style="DISPLAY: inline"&gt;&lt;img alt="References" border="0" class="asset asset-image at-xid-6a01157122d260970b01287763f4ef970c image-full " height="486" src="http://blog.xplatxperts.com/.a/6a01157122d260970b01287763f4ef970c-800wi" style="WIDTH: 93.27%; HEIGHT: 490px" title="References" /&gt;&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;Next, go File-&amp;gt;Management Pack Properties and go to the References tab&lt;/li&gt;
&lt;li&gt;Click Add Reference&lt;/li&gt;
&lt;li&gt;Select the MPs that you want to extend and use,&amp;#0160;I selected the Hyper-V MPs&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a861bdbb970b-pi" style="DISPLAY: inline"&gt;&lt;img alt="MPs" border="0" class="asset asset-image at-xid-6a01157122d260970b0120a861bdbb970b image-full " height="503" src="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a861bdbb970b-800wi" style="WIDTH: 93.76%; HEIGHT: 502px" title="MPs" /&gt;&lt;/a&gt; &lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Now we&amp;#39;re ready to start adding our rules and monitors.&lt;/p&gt;
&lt;p&gt;Let&amp;#39;s start by checking to see if we can extend the MP directly, ie add our own folders and views to the Hyper-V folder in the SCOM&amp;#0160;Monitoring hierarchy.&amp;#0160; This is determined by whether or not the root folder is flagged as &amp;#39;internal&amp;#39;&amp;#0160;or &amp;#39;public&amp;#39;.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In the Authoring Console, click the Presentation tab.&lt;/li&gt;
&lt;li&gt;Right-Click the Microsoft.Windows.HyperV.RootFolder and select New-&amp;gt;Folder&lt;/li&gt;
&lt;li&gt;Give your new folder an object name such as BridgeWays.Windows.HyperV.Performance and a display name like Performance&lt;/li&gt;
&lt;li&gt;Click the Folder tab and make sure the selected folder is Microsoft.Windows.HyperV.RootFolder&lt;/li&gt;
&lt;li&gt;Click OK&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a861c533970b-pi" style="DISPLAY: inline"&gt;&lt;img alt="RootFolder" border="0" class="asset asset-image at-xid-6a01157122d260970b0120a861c533970b image-full " height="168" src="http://blog.xplatxperts.com/.a/6a01157122d260970b0120a861c533970b-800wi" style="WIDTH: 80.04%" title="RootFolder" /&gt;&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;No luck with the Hyper-V MP, the root folder is internal and it doesn&amp;#39;t have any other folders so in this case we&amp;#39;ll have to build out&amp;#0160;a parallel MP that has our new information in it.&amp;#0160; For Hyper-V it&amp;#39;s&amp;#0160;not a big deal since there are only the 3 state views, for an MP like SQL Server, luck is on our side the root folder is public so we can extend that MP&amp;#0160;directly.&lt;/p&gt;
&lt;p&gt;Another way to do this is to use the MP Viewer tool that you can get from here &lt;a href="http://blogs.msdn.com/boris_yanushpolsky/archive/2008/01/31/mpviewer-1-3.aspx"&gt;http://blogs.msdn.com/boris_yanushpolsky/archive/2008/01/31/mpviewer-1-3.aspx&lt;/a&gt;&amp;#0160;&lt;/p&gt;
&lt;p&gt;To create the new folder, simply follow the previous steps, but give your folder a more precise name like &amp;quot;BridgeWays Windows Hyper-V&amp;quot; and set the parent folder to be Microsoft.SystemCenter.Monitoring.ViewFolder.Root&amp;#0160;.&amp;#0160; Now we have a new root folder for any views we want to create.&lt;/p&gt;
&lt;p&gt;Now let&amp;#39;s create a duplicate state view within our new folder.&amp;#0160; This state view will simply duplicate the same information as the Hyper-V MP shows in the Server Role View.&amp;#0160; I&amp;#39;m doing this because I know I&amp;#39;ll be adding a number of monitors as well as performance views and I don&amp;#39;t want to have to switch from one folder to another when I&amp;#39;m watching the environment.&amp;#0160;&amp;#0160;The Hyper-V MP only has 3 state views so it&amp;#39;s not a big deal to duplicate them.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Right click on the&amp;#0160;new folder (BridgeWays.Windows.HyperV.Root in my case) and select New-&amp;gt;State View&lt;/li&gt;
&lt;li&gt;Give it a new ID postfix, such as ServerRole.State&lt;/li&gt;
&lt;li&gt;Give it a Display name, such as &amp;quot;Server Role State&amp;quot;&lt;/li&gt;
&lt;li&gt;Click the ellipses by Target and select the target we want to show in the state view, in this case Microsoft.Windows.HyperV.ServerRole&lt;/li&gt;
&lt;li&gt;Click Finish&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;That&amp;#39;s it, we&amp;#39;ve just duplicated the Server Role View from the Hyper-V MP to our new custom MP.&amp;#0160; The beauty of this is we don&amp;#39;t have to redo the discoveries or anything because the data is already being populated by the core MP.&lt;/p&gt;
&lt;p&gt;For the next post, we&amp;#39;ll look at adding our own monitors to the discovered servers.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-a-more-robust-hyperv-mp.html"&gt;Part 1: Getting Started with writing a more robust Hyper-V MP&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-your-own-monitors.html"&gt;Part 2: Adding your own Monitors&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-adding-rules.html"&gt;Part 3: Adding Rules and Performance Views&lt;/a&gt;&lt;br /&gt;&lt;a href="http://blog.xplatxperts.com/xplat-xperts/2010/03/writing-management-packs-for-scom-adding-dashboards.html"&gt;Part 4: Adding Dashboards&lt;/a&gt;&lt;/p&gt;</content:encoded>


<category>Operations Manager</category>
<category>Technology</category>

<dc:creator>Michael Guthrie</dc:creator>
<pubDate>Thu, 04 Feb 2010 15:43:28 -0500</pubDate>

<feedburner:origLink>http://blog.xplatxperts.com/xplat-xperts/2010/02/writing-management-packs-for-scom-a-more-robust-hyperv-mp.html</feedburner:origLink></item>

</channel>
</rss><!-- ph=1 -->

