How to add an Alert Widget to your sealed management pack


As a management pack author you want to add a custom dashboard to your management pack and you want to add an Alert Widget to the dashboard. Alas when configuring the Alerts Widget only guids are accepted as valid targets.


<Binding PropertyId=TargetIds>

   <ComplexValueCollection Type=mpinstance://System.Library!System.Entity[]>

      <ComplexValue Type=mpinstance://System.Library!System.Entity>

         <Binding PropertyId=Id>

<SimpleValue Type=xsd://string Value=6ad45d81-6eab-c56d-aa76-4c70deffe5f5 />






The question is: how can I know the guids of my custom groups, the poor Alerts Widget only accept groups for scoping.


As a matter of fact when a management pack is sealed it is stamped in such a way that guids become fixed, wherever you import your management pack you will always get the same guid. I don’t know if the guids are generated at seal time (I don’t think so) or if it is the management pack import process that has some way to calculate guids based on management pack signature, in any case you can assume that, once a management pack is sealed, the guids remain the same.

So to get the correct guids you should:

          Seal the management pack

          Import the management pack in your test/dev management group

          Check the designated group guid (Get-SCClass –Name ‘MyGroupName’)

          Set the guid(s) as the binding Id(s) for the Alerts Widget

          Seal once again your management pack


As Daniele Muscetta points out I completely missed a tool published by Satya Vel that helps automating the whole process, so while my posts explains some of the insights of dashboards it’s certainly more simple to use the tool published at this address:

– Daniele

This posting is provided “AS IS” with no warranties, and confers no rights.

    • #2 by Daniele Grandini on December 13, 2012 - 8:04 am

      Ooops I used the tools in the past, but I missed the chance to use it to strip guids.

  1. #3 by Jonathan Almquist on November 29, 2012 - 9:56 pm

    Nice nugget of knowledge. Thanks for posting.

  1. NeWay Technologies – Weekly Newsletter #19 – November 29, 2012NeWay | NeWay

Leave a Reply

Fill in your details below or click an icon to log in: Logo

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: