Wednesday, April 18, 2012

[OpsMgr 2007] How to create a group of objects that are contained by an other group

First I would like to thanks  for his post http://blogs.technet.com/b/kevinholman/archive/2010/09/09/how-to-create-a-group-of-objects-that-are-contained-by-some-other-group.aspx

I've work on the MP he has provided is his post and added 3 groups to answer this interesting customer request.

The request was to be able to make an override on the monitor "Percentage of Committed Memory in Use" in the OS MP for all SQL servers. Not so easy to do it since you retrieve at least 3 monitors "Percentage of Committed Memory in Use" - one in each Windows Server xxxx Operating System class. We have also to build 3 groups, one per OS version.

And to be really clean, I have to create 3 dynamic groups that contains Operating System.objects - one by OS version. Dynamic groups because customer asked the override to be created for all SQL servers monitored.
  1. One group of Operating System = 2008 and server is SQL server
  2. One group of Operating System = 2003 and server is SQL server
  3. One group of Operating System = 2000 and server is SQL server
As explained by Kevin, this is not doable within the SCOM console, you have to edit group in the authoring console.

The way to proceed will be the same as the one explained by Kevin. I've also add some other references to the Microsoft Windows Server xxxx MPs :



Then you are able to create 3 classes OS2000GroupSQL, OS2003GroupSQL and OS2008GroupSQL and the 3 associated discoveries:
  1. Populate OS Group – SQL – 2008 Server
  2. Populate OS Group – SQL – 2003 Server
  3. Populate OS Group – SQL – 2000 Server
For each discovery, choose a target class, which will be the Group class we just created earlier. Select the “Discovered Classes” tab and add Microsoft.SystemCenter.InstanceGroupContainsEntities in the “Discovered relationships and their attributes”.
Then select the Configuration tab, Browse for a Type and select Microsoft.SystemCenter.GroupPopulator. Give a module ID - then you may have an error that must be ignored.
On the configuration screen – select “Edit”
We will be replacing the XML showing in Notepad with an example I have written.  Highlight all but the first line and delete it.

Then paste this for the 2008 discovery :

<RuleId>$MPElement$</RuleId>
  <GroupInstanceId>$MPElement[Name="Custom.Group.Example.OS2008GroupSQL"]$</GroupInstanceId>
  <MembershipRules>
    <MembershipRule>
      <MonitoringClass>$MPElement[Name="Server2008!Microsoft.Windows.Server.2008.OperatingSystem"]$</MonitoringClass>
      <RelationshipClass>$MPElement[Name="MicrosoftSystemCenterInstanceGroupLibrary!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
      <Expression>
        <And>
          <Expression>
            <RegExExpression>
              <ValueExpression>
                <Property>$MPElement[Name="Windows!Microsoft.Windows.OperatingSystem"]/OSVersionDisplayName$</Property>
              </ValueExpression>
              <Operator>ContainsSubstring</Operator>
              <Pattern>2008</Pattern>
            </RegExExpression>
          </Expression>
          <Expression>
            <Contained>
              <MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Computer"]$</MonitoringClass>
              <Expression>
                <Contained>
                  <MonitoringClass>$MPElement[Name="MicrosoftSQLServerLibrary!Microsoft.SQLServer.ComputerGroup"]$</MonitoringClass>
                </Contained>
              </Expression>
            </Contained>
          </Expression>
        </And>
      </Expression>
    </MembershipRule>
  </MembershipRules>
</Configuration>


Save the discovery, save your MP and import it in your DEV environment ! :)

You will be able to retrieve your new group in the authoring part :
Note I've keep the group created by Kevin.



Just right click on it and select “View Group Members” - the group OS Group - SQL - 2008 Server should be populated with OS 2008 objects corresponding to SQL server installed in Windows server 2008 or 2008 R2 and all other version.





You can download my MP for testing purpose here in this folder

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

Thursday, April 12, 2012

[OpsMgr 2007R2][OpsMgr 2012] How to keep SQL 2000 monitoring after upgrading the MP in version 6.3.173.0

As you should know, the SQL Server Management Pack has been released in version 6.3.173.0 and this new MP provides the capabilities for Operations Manager 2007 R2 and Operations Manager 2012 to discover SQL Server 2005, 2008, 2008 R2, and SQL Server 2012. It monitors SQL Server components such as database engine instances, databases, and SQL Server agents.

That means the librairy does not contain any more the classes dedicated to SQL 2000 monitoring... What a pitty when you always have SLQ 2000 instances and when the SQL team tell you they are ready for SQL 2012 installations !

Microsoft has also published in May 2011 a dedicated MP + it's library to monitor SQL 2000 instances ! See http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=15226 
BUT what a surprise to see that both Library ( in the SQL 2000 MP and in the release 6.3.173.0) have the same name : Microsoft.SQLServer.Library.mp

Impossible to import both library... and also impossible to keep SQL 2000 monitoring after an upgrade to  6.3.173.0 MP version.

I've also decided to unseal the MPs and rename the Library to be able to import SQL 2000 MP in parallele of the release 6.3.173.0 MP.

Or you can download a .ZIP file here : >>>>>> Click to Download <<<<<<


Please reseal all 3 MPs before importing in SCOM.

NOTE this will be supported by Microsoft but it's the only way I've found to be able to always monitor the SQL 2000 instances and be ready for SQL 2012 monitoring.


Here is the result after import in SCOM :


Hope this will help you ! :)

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

[OpsMgr 2007][OpsMgr 2012] Monitoring Pack for System Center 2012 - App Controller

Version:          1.0.1200.0
Release Date:  4/6/2012

The Microsoft System Center 2012 - App Controller monitoring pack is designed to be used for monitoring System Center 2012 - App Controller's health.

Files in this download

The links in this section correspond to files available for this download. Download the files appropriate for you.

File name
Size
AppControllerMP_Chinese.msi427 KBDownload
AppControllerMP_English.msi361 KBDownload
AppControllerMP_French.msi428 KBDownload
AppControllerMP_German.msi425 KBDownload
AppControllerMP_Italian.msi427 KBDownload
AppControllerMP_Japanese.msi434 KBDownload
AppControllerMP_Portuguese(Brazil).msi428 KBDownload
AppControllerMP_Russian.msi432 KBDownload
AppControllerMP_Spanish.msi425 KBDownload
System Center 2012 - App Controller Management Pack Guide.doc255 KBDownload



Overview
The Microsoft System Center 2012 - App Controller monitoring pack is designed to be used for monitoring System Center 2012 - App Controller's health. It allows you to proactively manage App Controller and identify issues with the App Controller services, website and database.
The System Center 2012 - App Controller monitoring pack includes rules to monitor and report on the availability of the App Controller services, website and database.


Release History

•4/6/2012 - Original English Release, version 1.0.1200.0
System requirements
Supported operating systems: Windows Server 2008 R2

•Other Software: System Center Operations Manager 2007 R2 or later

Instructions
To use the English version of the System Center 2012 - App Controller Monitoring Pack, you only need to download and install the English (EN) version of the Monitoring Pack.
If you want to use a localized version of the monitoring pack, you must first download and install the English version of the monitoring pack. Then, you must download and install the language pack for your respective language. The English version of the monitoring pack includes the prerequisites for all localized versions of the monitoring pack. For detailed information about installing and using this monitoring pack, download and read the Monitoring Pack for System Center 2012 - App Controller's Guide. That guide is available for download on this Web page.


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

Wednesday, April 11, 2012

[OpsMgr 2012] How to add a product key to an eval version of System Center 2012 Operations Manager

Article ID: 2699998 - Last Review: April 10, 2012 - Revision: 1.1
After installing System Center 2012 Operations Manager, you may look at Help -> About and see (Eval) after the Version info.This article describes how to add a Product Key to the Eval edition of System Center Operations Manager 2012. 
To set the product key, use the Set-SCOMLicense cmdlet in PowerShell. To use the Set-SCOMLicense cmdlet you need to use elevated permissions. (Run as Administrator).
1.       Open PowerShell as and Administrator
2.       Load the OperationsManager Module (import-module operationsmanager)
3.       Connect to your ManagementGroup (New-SCOMManagementGroupConnection)
4.       Use Set-SCOMLicense “yourlicensekey“
5.       To check if changes were executed run Get-SCOMManagementGroup | ft skuforlicense, version, timeofexpiration –a

Note: This may require a reboot after running in order to register correctly.

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.


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

Friday, April 6, 2012

[OpsMgr 2007R2][OpsMgr 2012] Monitoring Text and CSV log files

Article ID: 2691973 - Last Review: April 3, 2012 - Revision: 3.0
 
Configuring System Center Operations Manager to monitor plain text and delimited text log files from various sources is straightforward but there are some scenarios of which to be aware.
 
See the link below for instructions on how to create a Simple Event Detection monitor for a plain text (non-delimited) log file in System Center Operations Manager 2007 and 2007 R2:
http://technet.microsoft.com/en-us/library/bb381375.aspx

NOTE This information should also apply to System Center 2012 Operations Manager
Follow the procedure at the link above to create a monitor for a delimited (CSV) log file with the following exceptions:

Step 7: In the Create Monitor Wizard, on the Select a Monitor Type page, expand Log Files, expand Text Log (CSV), expand Simple Event Detection, click Event Reset, and then click Next.

Step 10: The separator must also be entered on the Application Log Data Source page. The separator does not have to be a comma, but it must be a printable character.

Step 12: When entering a parameter name, the number in Params/Param[x] represents the field on which the operation will take place. For example, Params/Param[1] is the first field of the delimited file; Params/Param[2] is the second field of the delimited file, and so forth.


Steps for creating a rule to monitor a log file

The following steps illustrate how to create a rule that targets the Windows Computer class and monitors a log file in System Center Operations Manager 2007 and 2007 R2. For more information on selecting a target for a workflow (which includes rules and monitors) see
Selecting a Target for a Workflow
 
1. Log on to the computer with an account that is a member of the Operations Manager Administrators user role or Operations Manager Authors user role for the Operations Manager management group.
2. In the Operations console, click the Authoring button.
3. In the Authoring pane, expand Authoring, expand Management Pack Objects, and then click Rules.
4. In the toolbar, click Scope.
5. In the Scope Management Packs Objects dialog box, in the Find text box, type Windows Computer, select the Windows Computer target check box, and then click OK.
6. In the Rules pane, right-click Windows Computer and then click Create a New Rule
7. In the Create Rule Wizard, on the Select the type of rule to create page, expand Collection Rules, expand Event Based, and select Generic Text Log or Generic CSV Text Log

NOTE
If an alert will be configured, choose Alert Generating Rules, expand Event Based, and select Generic Text Log or Generic CSV Text Log
8. Select a management pack from the Select destination management pack list (in System Center Operations Manager 2012, this list picker is labeled Select Management Pack) or create a new unsealed management pack by clicking New. By default, when creating a management pack object, an override, or disabling a rule or monitor, Operations Manager saves the setting to the Default Management Pack. As a best practice, create a separate management pack for each sealed management pack to be , rather than saving customized settings to the Default Management Pack. For more information, see Default Management Pack.
9. Click Next
10. On the General page, in the Name box, type a name for the rule, and then as an option, you can type a description.
11. Click the Rule Category arrow, select the appropriate category, and then click Next.
12. On the Application Log Data Source page under Define the application log data source, in the Directory text box, type a path to where the log files are located, for example, C:\logfiles
13. In the Pattern text box, type a pattern string to select log files. For example, application??.log will find any log file that starts with ‘application’ followed by zero to two characters with an extension of ‘.log’ (e.g. application.log, application1.log, application01.log, etc.).
14. For CSV log types, enter the separator. The separator does not have to be a comma, but it must be a printable character
15. Select UTF8 if applicable, and then click Next
16. On the Build Event Expression page (for the Build First Expression),click Insert and then do the following:
a. Under Parameter Name (on the left), type Params/Param[1]. Params/Param[1] is the only field available for Generic Text log, since each line in the file is considered a single field. For Generic CSV Text Log, the number in Params/Param[x] represents the field on which the operation will take place. For example, Params/Param[1] is the first field of the delimited file; Params/Param[2] is the second field of the delimited file, and so forth.
b. Under Operator, click the pull down menu and select an operator, for example Contains
c. Under Value enter the text that this monitor should trigger on as found in the log file, for example error
17. Click Create to create the rule. If Alert Generating Rules was chosen in step 7A, click next to configure the alert, then click Create to create the rule.
After the rule is created, edit the properties of the new rule to generate an alert when the rule is triggered. See How to Edit Properties of a Rule in Operations Manager 2007 for more information on editing the properties of a rule.

Steps for creating a text log alert rule on System Center 2012 Operations Manager can be found under the section To create a delimited text log alert rule at
http://technet.microsoft.com/en-us/library/hh457567.aspx.


To reference the fields that were read from the log when the rule is triggered in an alert, use the Params/Param[x] syntax.

For more information on the various settings available in the Create a unit monitor and Create Rule Wizard wizards, see the section Text Log Wizard Options at
http://technet.microsoft.com/en-us/library/hh457567.aspx
Additional Information
When monitoring a log file, Operations Manager remembers the last line read within the file (a 'high water mark'). It will not re-read data before this point unless the file is deleted and recreated, or renamed and recreated, which will reset the high water mark.

An implication of this is that log files that are cleared periodically without being renamed and recreated, or deleted and recreated, will not have entries in them processed until the high water mark from before the log is cleared is exceeded.

Operations Manager cannot monitor 'circular log files' (i.e. log files that get to a certain size or line count, then start writing the newest entries at the beginning of the log) for the same reason. The log file must be deleted or renamed and then recreated, or the application configured to write to a new log once the current log is filled.

Example:
  • 100 lines are written to logfile.txt
  • logfile.txt is cleared of all entries
  • New log entries are written to logfile.txt (position 0 of the file)
  • None of the new entries will be processed until line 101 is written

Each line of a log file must end with a new line (0x0A0x0A hex sequence) before it will be read and processed by Operations Manager.

If a rule or monitor is configured to match a pattern for log file names (e.g. using the ? or * wildcard characters), it is important that only ONE log that matches the pattern is written. If multiple logs that match the pattern are being written to, the high water mark is reset to the beginning of the file with each write to a different file. The result is that all previous log entries will be reprocessed.

Example:
  • The log file name pattern is generic_csv??.txt
  • The current log is generic_csv01.txt and writes happen to this log.
  • A new log, generic_csv02.txt, is created. Writes occur to this log.
  • When the next line is written to generic_csv01.txt, the Operations Manager will read from the beginning of generic_csv.txt, not from the last point that was read from generic_csv01.txt. Lines previously processed will be processed again, possibly resulting in alerts or other actions (depending on the rule configuration).
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.

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

Tuesday, April 3, 2012

[OpsMgr 2007R2][OpsMgr 2012] System Center Monitoring Pack for System Center 2012 - Configuration Manager

Version:5.0.7705.0Date published:3/31/2012



File name
Size
OpsMgr_MP_ConfigMgr.docx108 KBDownload
System Center Monitoring Pack for Configuration Manager.msi923 KBDownload



 Link on Microsoft Website : http://www.microsoft.com/download/en/details.aspx?id=29267

Overview

This monitoring pack will allow you to monitor the health of Microsoft System Center 2012 Configuration Manager by monitoring general health; data replication between Configuration Manager sites; server and service availability; SQL Server configurations; Backup and recovery; backlog monitoring; software update synchronization; and other server role configuration.

Feature Summary
This release of monitoring pack delivers improved capabilities for Configuration Manager monitoring, including the following:
  • Monitoring the availability status of all server roles
  • Monitoring the health status of key services
  • Monitoring SQL replication health status
  • Collecting and monitoring performance counters from Configuration Manager servers
  • A topology diagram of the Configuration Manager site hierarchy
  • Reports showing the availability status and performance of Configuration Manager servers

Release History
  • 4/2/2012 - Initial Release, version 5.0.7705.0

System requirements

Supported operating systems: Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Server 2008 R2 SP1

  • Other Software:
    • System Center Operations Manager 2007 R2 or later
    • OR System Center Configuration Manager 2012

Instructions


  1. Click the Download button on this page to start the download
  2. Do one of the following:
    • To start the installation immediately, click Run.
    • To save the download to your computer for installation at a later time, click Save.
    • To cancel the installation, click Cancel.

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

[Orchestrator 2012] Orchestrator Component Add-ons and Extensions

Version:2012Date published:4/1/2012
Language:English



File name
Size
Microsoft.SystemCenter.2012.Orchestrator.BestPracticesAnalyzer.msi920 KBDownload
System_Center_2012_Orchestrator_Integration_Packs.EXE8.3 MBDownload
System_Center_2012_Orchestrator_Integration_ToolKit.exe3.0 MBDownload





Overview

The following System Center 2012 - Orchestrator add-ons and extensions are available for download:

System Center 2012 - Orchestrator Integration Toolkit
This toolkit contains wizard-based utilities for creating new activities and integration packs for System Center 2012 - Orchestrator . It also allows developers utilizing the Orchestrator SDK to create new custom integration packs for System Center 2012 - Orchestrator .
Features:
  • Rebranding, security enhancements, new generic activity icons
  • Wizards can upgrade 6.3 activities and IPs to be compatible with Orchestrator
  • Fixes issues with upgrading IPs multiple times
  • Fixes issues with DLL / dependent file conflicts among different IPs

System Center 2012 - Orchestrator Integration Packs
System Center 2012 - Orchestrator Integration Packs extend the core System Center 2012 - Orchestrator component to enable the authoring of datacenter automation using System Center 2012 Components. Also included in this download are Integration Packs for releases of Microsoft System Center products prior to System Center 2012.

This download includes Integration Packs for the following System Center 2012 Components:
  • System Center 2012 - Virtual Machine Manager
  • System Center 2012 - Operations Manager
  • System Center 2012 - Data Protection Manager
  • System Center 2012 - Service Manager
  • System Center 2012 - Configuration Manager

This download also includes Integration Packs for the following System Center product releases:
  • System Center Operations Manager 2007
  • System Center Service Manager 2010
  • System Center Virtual Machine Manager 2008
  • System Center Data Protection Manager 2010
  • System Center Configuration Manager 2007

System Center 2012 - Orchestrator Best Practices Analyzer
The Microsoft System Center 2012 - Orchestrator Best Practices Analyzer (BPA) is a tool that looks at the configuration data in an Orchestrator deployment and identifies settings that may cause issues within your environment. It BPA has following functions:
  • Gathers information about an Orchestrator deployment
  • Determines if the configurations are set according to the Microsoft recommended best practices
  • Reports on collected configurations, indicating settings that differ from recommendations
  • Indicates potential problems in the deployment

System requirements

Supported operating systems: Windows Server 2008 R2
Recommended Configuration for System Center 2012 Orchestrator Integration Toolkit
  • RAM – minimum 1GB recommended 2GB
  • Disk space minimum 200MB
  • CPU Dual Core or better
  • Windows 7 or Windows Server 2008 R2
  • .Net 3.5

Note:
  • System Center 2012 - Orchestrator should be installed prior to installing the System Center Integration Packs.
  • The Orchstrator BPA must be installed on the Orchestrator Management server.


Instructions

System Center Orchestrator 2012 Integration Toolkit
To install the Orchestrator Integration Toolkit – Download OrchestratorToolkitSetup.exe.

System Center Orchestrator 2012 Integration Pack
  • Double click on System_Center_2012_Orchestrator_Integration_Packs_RC.EXE
  • Follow the on screen prompts to complete the install
Please note that SQL Server 2008R2 and System Center 2012 - Orchestrator must be already installed and configured. You must also have local administrator permissions on the server where Orchestrator is being installed.

System Center 2012 - Orchestrator Best Practices Analyzer

    The Orchestrator BPA must be installed on the Orchestrator Management server. It depends on having the Microsoft Baseline Configuration Analyzer 2.0 (http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=16475) installed on the Orchestrator Management Server prior to installation. Installation process:
    1. Install Microsoft Baseline Configuration Analyzer 2.0
    2. Run Microsoft.SystemCenter.2012.Orchestrator.BestPracticesAnalyzer.msi
    Uninstallation process:
      Remove Microsoft System Center 2012 Orchestrator – Best Practices Analyzer (BPA) from the Programs and Features panel within Windows Control Panel.
    Usage
    1. Run the Microsoft Baseline Configuration Analyzer 2.0 from the Start menu in windows.
    2. Note: To learn how to run the Microsoft Baseline Configuration Analyzer scans from PowerShell cmdlets, please see the MBCA 2.0 help file.
    3. Select System Center 2012 – Orchestrator BPA from the product dropdown within the MBCA 2.0 user interface.
    4. Click on Start Scan
    5. Review the results and recommendations.

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