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.
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: http://blogs.technet.com/b/momteam/archive/2012/06/12/free-windows-server-2008-dashboards-for-opsmgr-2012-and-tool-to-help-create-your-own-customized-dashboards.aspx
This posting is provided “AS IS” with no warranties, and confers no rights.