Thursday, April 19, 2012

[OpsMgr 2007R2][OpsMgr 2012] Building groups in Operations Manager, with a bit of Orchestrator magic

Anders Bengtsson  has posted on April 2012 the 11th an article to show how to use Orchestrator to update a management pack that contains groups. Each time you run the runbook, a new version of your MP is generated and groups members are also updated.



In many scenarios you have a list of servers, a database query result or a place in your Active Directory that contains servers that you want to monitor in some special way. Often you need the machines in a group in Operations Manager so you can for example create overrides, maintenance mode and views for that group. It is a pretty boring work to build the group manually and then to keep the group updated.

A way to get the Operations Manager group in sync with the machine list is to use a runbook that creates a management pack including a group based on the list. This set of example runbooks reads a list of machine, creates a management pack with a group that includes the machines. The list of servers could be generated by another runbook or another tool. The last runbook also imports the management pack into Operations Manager.

Read more on http://contoso.se/blog/?p=2963

This posting is provided "AS IS" with no warranties.

[MMS 2012] Watch Keynotes and Sessions On Demand

DIGITAL MMS

Were you unable to register for MMS before the record-breaking sell out this year? While we are sorry not everyone can join us in person, the MMS team has made it possible for everyone to join us virtually! Imagine you’re there with direct access to MMS content.
Watch On Demand!

Watch Keynotes and Sessions On Demand

MMS offers over 175 breakout sessions across 5 technical tracks. That is a lot of content to take in! If you are unable to attend the event, or even if you will be there in person, you'll be able to view any sessions, including keynotes, you may have missed within 24 hours of the live presentation on the Digital MMS site. Access is easy - just log in with your preferred social credentials, find the session you want, and click the play icon.
Check the complete MMS Content Catalog to see what will be available. MMS attendees may also sign in to the site to access the Schedule Builder to view and add sessions to their schedules for the week.



This posting is provided "AS IS" with no warranties.

[OpsMgr 2007][OpsMgr 2012] Visio Management Pack Designer for System Center 2012 - Operations Manager (en-US)

Source : Technet

The Visio Management Pack Designer is an add-in for Microsoft Visio 2010 that lets you quickly create management packs for Operations Manager with minimal complexity.  It provides the following features:
 
  • Drag and Drop Visio Shapes to design the application you want to monitor.
  • Drag and Drop Visio Shapes to add monitoring
  • Uses Best Practices for developing a Management Pack.
Note : It's not available yet for download but we can find some documentation and example already.

When to use the Visio Management Pack Designer

Operations Manager offers a variety of tools for creating management packs, of which the VMPD is only one. Depending on the complexity of your system or your application, the VMPD might not be the right tool for you. If this is the case, then you should use the Visual Studio Authoring Extentions or the Operations Manager Authoring Console.

When to use the VMPD

  • When your application fits one of the patterns provided: single-server patterns for single server roles or groups, with or without components; or distributed applications, two-tier or three-tier, with individual servers or computer groups.
  • When your monitoring needs fall within the bounds of the five performance monitors the VMPD provides: Performance monitoring, Event monitoring, Service monitoring, Web site monitoring, and Database monitoring. However, those monitors are subject to some limitations, described below.

When not to use the VMPD

  • If your monitor is based on a script. The monitoring shapes that are part of the VMPD provide a wide range of monitoring features but do not support script-based monitoring at this time.
  • If your monitor requires logic that is not available in an existing shape. For example, you may want an event monitor that checks an application log at specific intervals and looks for a heartbeat event. If that event does not appear for a certain period of time, you’d want to raise an alert. There is not currently a missing event monitor in the VMPD.

Operations Manager Versions

The Visio Management Pack Designer builds management packs based on the schema for Operations Manager 2007 R2.  This format is compatible with System Center 2012 Operations Manager, so any management packs built with the tool will work with either version of the product.


Some other links to VMPD documentation :

This posting is provided "AS IS" with no warranties.

[OpsMgr 2012] SCOM 2012 Design and Planning Guide Document

The SCOM Team has published a planning and design guide for System Center Operations Manager 2012 (SCOM). The guide covers different considérations for different scenarios:

Contents
  • Considerations when Upgrading to System Center 2012 - Operations Manager
  • Considerations for a Clean Installation of System Center 2012 – Operations Manager
  • Considerations when Designing a Management Group for Network Monitoring
  • Considerations for Application Performance Monitoring
  • Considerations for High Availability and Disaster Recovery
 
About This Document

The content in this guide is written primarily for online presentation in the TechNet Library. The document version of this guide (.doc or .pdf) compiles the online topics into a single file. Because the individual online topics must include the appropriate context and navigation to other topics, you will note some redundancy between topics in the document version of this guide.


You can get it by clicking >>>>>>>>>> Here <<<<<<<<<<

This posting is provided "AS IS" with no warranties.

[OpsMgr 2007] Importing a Management Pack in System Center Operations Manager fails if a dependent management pack isn't imported - KB Microsoft

Article ID: 2698846 - Last Review: April 18, 2012 - Revision: 1.0
When importing a management pack in System Center Operations Manager 2007 that has a dependency on another management pack, the import may fail with the following message:

<ManagementPackName> could not be imported.

If any management packs in the Import list are dependent on this management pack, the installation of the dependent management packs will fail.
The requested management pack was invalid. See inner exception for details.
Parameter name: managementPack

This issue occurs because a management pack that the management pack being imported depends on isn't imported in the management group. In order to work around this problem, import the dependent management packs first then import the management packs that depend on them.

NOTE If you're unsure of the dependencies for a management pack, they will be listed in the management pack guide.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use (http://go.microsoft.com/fwlink/?LinkId=151500) for other considerations.
 ---------------------------------------------
I would add to this KB the fact that you can have an import failure if the dependencies in the management pack are created on version that is not the same of the dependent management pack that are installed in the management group. The error message will ask you the good version of the dependent managament pack.
If it's a provided MP, you 'll have to upgrade the dependent MPs - If it's your own MP, just edit the xml and give the good version of the dependent MP.

This posting is provided "AS IS" with no warranties.

[OpsMgr 2007R2] My best practice for creating overrides

After more that 16 months using SCOM, I've seen a lot of things concerning the configuration of the overrides on MPs and I think this post can be usefull to explain what to do to have a good way to apply overrides.
Microsoft has published a KB in 2007 - I've already post a word on this KB here but I would like to explain my feeling on how to do with overrides in a new post.

In order to have a proper view, you need first to define a naming convention :

  • For your Override MP
In my point of view, when you list the MP in the console (Administration pane) sorted by name, it's easier to retrieve OVR MP that have the same display name with a suffix that the MP to override.

For example :
        Provided MP IDs : Microsoft.SQLServer.2000.Monitoring.mp
        Provided MP display name : SQL Server 2000 (Monitoring)

        Create an override MP with :
        ID like Microsoft.SQLServer.2000.OVR
        Display name like SQL Server 2000 (Monitoring)

/!\ Note : When you create an Override MP in the SCOM console, you're not able to keep the digit in the ID. It could bean issue when you have to create an override MP for a dedicated version of an application.
You can also create your override MP via SCOM console, export it and remove it from SCOM. Then open the exported XML file and change the ID.

Here is the view you'll have in SCOM if you apply this naming convention : simple and easy to retrieve the Override MP.


  • For the groups you'll create to apply overrides on
I use to create 2 groups by default in each override MP - One to enable all discoveries that target Computer/Agent and the second one to disable the discoveries that target Computer/Agent.
When discoveries are enabled by default in the provided MP, I use to disable them for the class to be able to only target computer/agent I want to monitor.

For having a good view of overrides groups in the console, applying a naming convention will help you as for the override MP naming.

For discoveries, you can use :

OVR - MPName - Enable Monitoring   >> to enable discoveries
OVR - MPName - Disable Monitoring  >> to disable discoveries (enforced) - use to be able to remove a monitored server by using the remove-disablemonitoringobject cmdlet

Short example : OVR - SQL Server 2005 - Enable Monitoring

For monitor or rules :

OVR - MPName - Rule or Monitor Name - OverrideThatIsDone

Short examples :
OVR - SQL Server 2005 - Collect Buffer Cache Hit Ratio Rule - Set Tolerance to 1
OVR - SQL Server 2005 - Service Pack Compliance Monitor - Disable


With a naming convention, you will see all overrides sorted by MP and you will be able to easily retrieve overrides apply to a MP with the search engine : Just search "SQL Server 2005" for example.


Be sure you create only one override MP by MP to override :

How to be sure that overrides are stored in the good overrides MP : You can do it within SQL or by creating a SCOM report.

You need also to use the AllOverrideView view that lists the properties below for each override :
      ,[Name]
      ,[CategoryId]
      ,[TargetId]
      ,[ParentType]
      ,[ModuleId]
      ,[ModuleName]
      ,[OverrideableParameterId]
      ,[OverrideableParameterName]
      ,[ContextId]
      ,[ContextObjectId]
      ,[Value]
      ,[Enforced]
      ,[ManagementPackId]
      ,[OverrideType]
      ,[MPIsSealed]
      ,[TimeAdded]
      ,[LastModified]

And execute a SQL query on this view to retrieve for each Sealed MP, what Unsealed MP is storing overrides and the overrides count.




Never store overrides in the "Default Management pack" :

First, Microsoft offers 2 way to disable a monitor or a rule. Never use the "Disable the Monitor/Rule" menu that will store the override in the default management pack and prefer use the "Override the Monitor/rule" menu and select "for the class" or "For the group". This will help you to store the override in the OVR MP that contains the group and it will ask you what OVR MP should store the override for the class.


Always override a monitor/rule for a group :

Applying override for a specific object is really not  workable and It becomes very difficult to know which monitor is actually applied. The best is to create a group that can only be populated with the object type that is targeted by the rule/monitor to override. Once again, using SCOM console to create group does not allow you to choice the object type, or perhaps only when you populate the group at it's creation.. Have to check this. In my side, I prefer to create groups within the authoring console.

I would add that the groups used to override a specific rule or monitor should be populated by the same object type of the class where is implemented the rule/monitor.

Example : you have to create an override on the "Percentage of Committed Memory in Use" in the OS MP. This monitor is created in the class Windows Server xxxx Operating System . You can of courses create a group that contains Agent or Computer object and let the SCOM product detect the OS for the agent or server. It's in my mind more understandable to populate the group to override this monitor with Operating system object.



Cleaning up the default management pack:

The default MP is used to store specific information for the management group. The best practice is to NOT write any custom overrides or create monitors, rules or group to this MP.
Easy to write but the reality is other... sometimes, you can modifiy this MP by accident. The main issue is that dependency is created for this MP on any MP it refenrences when you store overrides or groups and we are not able to delete those MPs until the default MP is not clean up.
Here is also 2 links that explain how to remove dependencies on the default MP.


In short terms, to clean up the default MP, you must :
  1. Export the default MP - create a backup
  2. Identify the rules, monitor, group that have been created in it
    • For each rule, monitor or group, recreate them in an other MP
    • Delete them from the default MP
    • Delete associated Displaung
  3. Identify the overrides that are stored in it
    • For overrides recreate them in an other MP
    • Delete them from the default MP
  4. Identify the views that have been created in it
    • Each view must be recreated in an other MP
    • Delete them from the default MP
  5. When step 1, 2 and 3 is done, delete all un-used references.
  6. Re-import the Default MP

Hope I'll add some other things here..... don't hesitate to comment !
 
 
New information added on 4/24/2012
 






 
Application models
 
 





 

This posting is provided "AS IS" with no warranties.

[SQL & SCOM] What Unsealed MP is storing overrides - SQL query

Here is a usefull query that will help you to retrieve where are stored your overrides by unsealed MP.

It can help you to retrieve where are stored the overrides on a specific MP or what overrides are stored in the specific MP (for example the default MP ;) ) to be able to clean up this management pack.


Here is the query to execute on the OperationsManager :

SELECT MP.MPName, MP.MPVersion, OVRMP.MPName AS 'Unsealed MP', OVRMP.MPVersion AS 'Unsealed MP Version', COUNT(AOV.Id) AS 'Number of Overrides'
FROM AllOverrideView AS AOV LEFT OUTER JOIN
                     
Rules AS R WITH (nolock) ON AOV.TargetId = R.RuleId LEFT OUTER JOIN
Monitor AS M WITH (nolock) ON AOV.TargetId = M.MonitorId LEFT OUTER JOIN
DManagementPack AS MP WITH (nolock) ON
    (CASE
    WHEN AOV.OverrideType = 'RuleProperty' THEN R.ManagementPackId
    WHEN AOV.OverrideType = 'RuleConfiguration' THEN R.ManagementPackId
    WHEN AOV.OverrideType = 'MonitorProperty' THEN M.ManagementPackId
    WHEN AOV.OverrideType = 'MonitorConfiguration' THEN M.ManagementPackId
    WHEN AOV.OverrideType = 'DiscoveryProperty' THEN D .ManagementPackId
    WHEN AOV.OverrideType = 'DiscoveryConfiguration' THEN D .ManagementPackId
    END) = MP.ManagementPackId INNER JOIN
ManagementPack AS OVRMP WITH (nolock) ON OVRMP.ManagementPackId = AOV.ManagementPackId
WHERE     (MP.MPName IS NOT NULL)
GROUP BY MP.MPName, OVRMP.MPName, MP.MPVersion, OVRMP.MPVersion
ORDER BY MP.MPName, 'Unsealed MP'

Result exported to excel should be like :




This posting is provided "AS IS" with no warranties.