Beruflich Dokumente
Kultur Dokumente
Acknowledgements
Program Managers: Tom Keane, Steve Wilson
Writer: Brenda Carter
Technical Reviewer: James Hedrick
Editor: Scott Kendall
Recommended Knowledge and Skills 2
Information in this document, including URL and other Internet Web site references, is subject to
change without notice. Unless otherwise noted, the example companies, organizations, products,
domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious,
and no association with any real company, organization, product, domain name, e-mail address,
logo, person, place, or event is intended or should be inferred. Complying with all applicable
copyright laws is the responsibility of the user. Without limiting the rights under copyright, no
part of this document may be reproduced, stored in or introduced into a retrieval system, or
transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or
otherwise), or for any purpose, without the express written permission of Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual
property rights covering subject matter in this document. Except as expressly provided in any
written license agreement from Microsoft, the furnishing of this document does not give you any
license to these patents, trademarks, copyrights, or other intellectual property.
2003 Microsoft Corporation. All rights reserved.
Active Directory, Microsoft, SQL Server, Windows, and Windows Server are either registered
trademarks or trademarks of Microsoft Corporation in the United States and/or other countries.
The names of actual companies and products mentioned herein may be the trademarks of their
respective owners.
Contents iii
Contents
Recommended Knowledge
and Skills
To deploy and operate the Microsoft® SQL Server™ Management Pack Refresh, it is
recommended that you possess the following knowledge and skills:
• A working knowledge of the Microsoft Operations Manager 2000 (MOM)
monitoring features.
• Be familiar with the recommended process for deploying Management Packs as
described in Chapter 7, “Deploying Management Packs,” in the Microsoft
Operations Manager 2000 SP1 Deployment Guide.
• Have an administrative and working knowledge of Microsoft SQL Server 7.0 and
SQL Server 2000.
• Have a working knowledge of databases and Transact-SQL.
MSDTC
• SQL Server MSDTC errors
Performance
• Deadlocks and blocks
• Excessive user connections
• Pages writes and allocations
• Active transactions
• Average wait time
• DBCC logical scan bytes per second
• Full scans per second
• Memory grants pending
4 Recommended Knowledge and Skills
Reporting
• Replication metrics
• Backup device throughput
• Lock performance
• Log performance
• SQL Server critical errors
Security
• Trusted and non-trusted security configurations
• Collection of failed SQL Server login attempts
Backups
• Failed full database backups
• Failed incremental database backups
• Database device throughput
• Successful database backups
Replication
• Snapshot replication
• Merge replication
• Transactional replication
• Replication components
• Replication agents running
The upgrade process replaces the existing SQL Server Management Pack. This updated
Management Pack includes significant changes to the structure of the existing Management Pack
hierarchy and relocates a large number of rules. Therefore, if you have made customizations to
existing rules in a previous version of the SQL Server Management Pack, it is recommended that
you copy these customized rules to a dedicated Management Pack for the upgrade process. You
should also perform a full database backup prior to upgrading this Management Pack.
Note
No changes are made to existing SQL Server Management Pack
reports. All reports continue to work as is.
The Import Management Pack wizard in MOM allows you to perform a backup of the previous
version of the SQL Server Management Pack. The best practice is to leave the Backup existing
Management Pack on upgrade check box selected. This allows you to revert to the previous
Management Pack, if required.
To upgrade the SQL Server Management Pack
1. In the MOM Administrator console, navigate to Rules, Processing Rule Groups.
2. Right-click Processing Rule Groups, and then click Import Management Pack.
3. Enter the path to the Microsoft SQL Server.akm file or browse to and select this file.
4. Verify that Replace Existing Management Pack is selected.
5. Verify that the Backup existing Management Pack on upgrade check box is selected.
6. Click Next.
7. Select the desired options for backing up the previous version of the SQL Server
Management Pack, and then click Next.
8. Click Finish.
To verify that the upgraded SQL Server Management Pack appears in
the MOM Administrator console
1. In the MOM Administrator console, navigate to Rules, and then click Microsoft
SQL Server.
2. In the right pane, review the Purpose section of the knowledge base content, and
then verify that the last sentence in this section lists a build number of 1334 or later.
After upgrading the SQL Server Management Pack, commit the new configuration changes
manually to ensure that agents receive the new SQL Server Management Pack rules.
To commit configuration changes
1. In the MOM Administrator console, navigate to Rules.
2. Right-click Rules, and then click Commit Configuration Change.
6 Recommended Knowledge and Skills
Setting Up Reporting
By default, no data is collected for reporting. This prevents unnecessary database growth. To
enable reporting, the processing rules that collect the data for reports must be enabled. This
section lists the processing rules that need to be enabled and includes setup for the following
reporting scenarios:
• Reporting for clustered databases
• Reporting for named instances on SQL Server 2000
For a list of reports that are included in the SQL Server Management Pack Refresh, see the
“Reports” section later in this guide.
Note
Not all reporting processing rules are available for both
SQL Server 7.0 and SQL Server 2000. Also, report names in
some processing rule groups are preceded by Report Collection
—.
Table 1 Processing Rules That Gather Data for Capacity Planning Reports
Report Processing Rule
Capacity Planning — SQL Server Device Throughput Bytes/sec
Backup Device Capacity
Planning by Day
Recommended Knowledge and Skills 7
Trans/sec
Recommended Knowledge and Skills 9
Processing Rules
Service monitoring and local connectivity rules are listed in the following locations:
• \SQL Server 2000\SQL Server 2000 Health and Availability Monitoring\Event
Processing Rules\SQL Server Service Availability
• \SQL Server 7.0\SQL Server 7.0 Health and Availability Monitoring\Event
Processing Rules\SQL Server Service Availability
10 Recommended Knowledge and Skills
Scripts
While there are five SQL Server service availability processing rules, the first of these rules
(SQL Server Service Availability) stores the script and executes the script parameters for service
availability monitoring.
The best practice for modifying these service availability monitoring settings is to adjust the
script parameters in the SQL Server Service Availability processing rule, rather than disabling
any of the remaining service availability processing rules. If you disable any of the remaining
service availability processing rules without disabling the script responses associated with those
rules, the scripts continues to run but the alerts are not generated.
The following table lists the script parameters, descriptions, and default states.
Table 3 SQL Server Service Availability Script Parameters
Script Parameter Description Default Value
CheckSQLAgent Logs a warning event when the SQL Enabled
Agent service is not running
CheckSQLConnectio Logs an error event when Enabled
n SQL Server local connectivity
cannot be established
CheckSQLServer Logs an error event when the Enabled
SQL Server service is not running
CheckSearch Logs a warning event when full text Disabled
search is not available
InformationEvent Logs an information event each Disabled
time the script runs
Recommended Knowledge and Skills 11
Customization
SQL Server service availability monitoring can be customized to modify the behavior to only
check some services and connectivity. However, the default configuration effectively monitors
the health of SQL Server. Therefore, the best practice is to not change the default configuration.
To customize SQL Server service monitoring
1. In the MOM Administrator console, navigate to the SQL Server Service
Availability processing rule.
2. Right-click the rule, and then click the Response tab.
3. Select the rule, and then click Edit.
4. In the Script parameters box, modify the script responses by selecting a script, and
then click Edit Script Parameters.
5. After modifying script responses, click OK, and then Apply.
After modifying the script responses, commit the configuration changes to apply the changes to
agent computers.
Processing Rules
The database space analysis processing rules are listed in the following locations:
• \SQL Server 2000\SQL Server 2000 Health and Availability Monitoring\Event
Processing Rules\SQL Server Database Space Analysis
• \SQL Server 7.0\SQL Server 7.0 Health and Availability Monitoring\Event
Processing Rules\SQL Server Database Space Analysis
The following table lists the database space analysis processing rules.
Table 4 SQL Server Service Availability Processing Rules
Processing Rule Default Value
SQL Server Database Space Analysis Enabled
SQL Server Database Space Analysis — Database space Enabled
error
SQL Server Database Space Analysis — Database space Enabled
warning
SQL Server Database Space Analysis — Log file space Enabled
12 Recommended Knowledge and Skills
error
SQL Server Database Space Analysis — Log file space Enabled
warning
Recommended Knowledge and Skills 13
Scripts
While there are five SQL Server database space processing rules, the first of these rules
(SQL Server Database Space) stores the script responses for database space monitoring. The
following table lists the script parameters, the database to which they are applied, the threshold
settings, and the default states. If the indicated database is General, the script is applied to all
databases except those specifically called out in the table, such as the System Databases and the
TempDB databases. The Model database is excluded from space monitoring.
Table 5 SQL Server Service Availability Script Parameters
Event Threshold Default
Script Parameter Database Severity Value Value
DBErrorLevel General databases Error 100 MB Enabled
DBWarningLevel General databases Warning 200 MB Enabled
LogErrorLevel General Transaction Error 75 MB Enabled
logs
LogWarningLeve General Transaction Warning 150 MB Enabled
l logs
SysDBErrorLevel System Databases Error 15 MB Enabled
(MSDB and Master)
SysDBWarningL System Databases Warning 30 MB Enabled
evel (MSDB and Master)
SysLogErrorLeve System Transaction Error 15 MB Enabled
l Logs (MSDB and
Master)
SysLogWarningL System Transaction Warning 30 MB Enabled
evel Logs (MSDB and
Master)
TempDBErrorLe TempDB Error 100 MB Enabled
vel
TempDBWarnin TempDB Warning 200 MB Enabled
gLevel
TempLogErrorLe TempDB Transaction Error 75 MB Enabled
vel Logs
TempLogWarnin TempDB Transaction Warning 150 MB Enabled
gLevel Logs
every hour, by default, and checks each installed database on the server. When checking the
database, each database and transaction log file group and associated file is enumerated.
Customizing Thresholds
The database and transaction log space monitoring thresholds can be customized. If you are
customizing thresholds, it is recommended that you work with database administrators to
determine the appropriate warning and error threshold levels. By default, the space thresholds do
not require any customization.
To customize database space analysis monitoring
1. In the MOM Administrator console, navigate to the SQL Server Database Space
Analysis processing rule.
2. Right-click the rule, and then click the Response tab.
3. Select the rule, and then click Edit.
4. In the Script parameters box, modify the script responses by selecting a script, and
then click Edit Script Parameters.
5. After modifying script responses, click OK, and then Apply.
Recommended Knowledge and Skills 15
After modifying the script responses, commit the configuration changes to apply the changes to
agent computers.
16 Recommended Knowledge and Skills
The following figure highlights the two-step process for remote connectivity checking.
Figure 1 SQL Server remote connectivity check
Processing Rules
The client-side monitoring processing rules are listed in the following locations:
• \SQL Server 2000\Client Side Monitoring\Event Processing Rules\SQL Server
Remote Connectivity
• \SQL Server 7.0\Client Side Monitoring\Event Processing Rules\SQL Server Remote
Connectivity
The following table lists the client-side monitoring processing rules.
Table 6 SQL Server Client-Side Monitoring Processing Rules
Processing Rule Default Value
SQL Server Remote Connectivity Enabled
SQL Server Remote Connectivity — Execution Failure Enabled
SQL Server Remote Connectivity — Execution Time Enabled
Warning
18 Recommended Knowledge and Skills
Recommended Knowledge and Skills 19
Scripts
While there are several SQL Server remote connectivity processing rules, the first of these rules
(SQL Server Remote Connectivity) stores the script parameters for remote connectivity
monitoring. The following table lists the script parameters, descriptions, and default states for the
SQL Server Remote Connectivity processing rule.
Table 7 SQL Server Service Availability Script Parameters
Script Parameter Description Default Value
CheckInstances A comma-separated list of remote Disabled
databases to connect to. This list
might include only computer names
(for a default instance) or a computer
and instance name (for example,
Server\Instance10).
DatabaseName The database to run the query against. Enabled
By default, the database is set to
Master.
ExecutionTimeAl The acceptable time for the specified Enabled
ert query to execute. If the query takes
longer than the specified time to
execute, an alert is raised. This
number can be a decimal number, for
example 0.01. The default value is
5 seconds.
InformationEven Logs an information event each time Disabled
t the script runs.
Query The Transact-SQL query that is run on Enabled
the designated client computer to
check connectivity to SQL Server
databases specified in the
CheckInstances script parameter. The
default query is SELECT GETDATE.
• Ensuring that the MOM service account on the designated client computer has the
appropriate permissions to connect to the SQL Server computers.
• Adding SQL Server computers and instances to the SQL Server remote connectivity
processing rule.
To add computers to the MS SQL Server client-side monitoring
computer groups
1. In the MOM Administrator console, navigate to Rules, Computer Groups.
2. Right-click the appropriate computer group, and then click Properties.
3. Click the Included Computers tab.
4. Click Add to add computers, add computer criteria, and then click OK.
5. Click Apply, and then OK.
Be sure to initiate a managed computer scan after modifying a computer group membership.
To add computers to the SQL Server remote connectivity processing
rule
1. In the MOM Administrator console, navigate to the Client Side Monitoring
processing rule group, and then click Event Processing Rules.
2. Right-click the SQL Server Remote Connectivity processing rule, and then click
Properties.
3. Click the Responses tab, select SQL Server Remote Connectivity, and then click
Edit.
4. In the Script parameters box, select CheckInstances, and then click Edit Script
Parameters.
5. In the Value field, enter a comma-separated list of instances to connect to, and then
click OK. To check for connectivity to a default instance, enter only the server name.
To check for connectivity to a named instance, enter the server name and instance
name by using the following format: server_name\instance_name.
6. After modifying script responses, click OK, and then Apply.
After modifying the computer group membership and script responses, commit the configuration
changes to apply the changes to agent computers.
Alerts
The results of the query determine the alerts that are generated:
Alert – The query failed to execute.
Warning – The query executed outside the acceptable time threshold.
22 Recommended Knowledge and Skills
For information about how to determine the SQL Server version, see article 321185 in the
Microsoft Knowledge Base.
Processing Rules
The service pack compliance processing rules are listed in the following locations:
• \SQL Server 2000\SQL Server 2000 Health and Availability Monitoring\Event
Processing Rules\SQL Service Pack Compliance
• \SQL Server 7.0\SQL Server 7.0 Health and Availability Monitoring\Event
Processing Rules\SQL Service Pack Compliance
Recommended Knowledge and Skills 23
The following table lists the service pack compliance processing rules.
Table 9 SQL Service Pack Compliance Processing Rules
Processing Rule Default Value
SQL Service Pack Compliance Enabled
SQL Service Pack Compliance — Version does comply Enabled
SQL Service Pack Compliance — Version does not comply Enabled
Scripts
While there are several SQL Server service pack compliance processing rules, the first of these
rules (SQL Service Pack Compliance) stores the script parameters for service pack monitoring.
The following table lists the script parameters, descriptions, and default states for the SQL
Service Pack Compliance processing rule.
Table 10 SQL Service Pack Compliance Script Parameters
Script Parameter Description Default Value
AlertOnAll Generates a success event if the False (Disabled)
version complies.
InformationEven Logs an information event when the False (Disabled)
t script is run.
VersionString The SQL Server version string that is 8.00.194
used to evaluate service pack
compliance. The version string is the
earliest version that is acceptable to
meet service pack compliance.
1. In the Script parameters box, select VersionString, and then click Edit Script
Parameters.
2. In the Value box, enter the SQL Server version number that applies to your
environment, and then click OK.
3. After modifying script responses, click OK.
4. Click the General tab, select Enabled, and then click Apply.
After modifying the script responses, commit the configuration changes to apply the changes to
agent computers.
Processing Rules
The database health monitoring processing rules are listed in the following locations:
• \SQL Server 2000\SQL Server 2000 Health and Availability Monitoring\Event
Processing Rules\SQL Server Database Health
• \SQL Server 7.0\SQL Server 7.0 Health and Availability Monitoring\Event
Processing Rules\SQL Server Database Health
Recommended Knowledge and Skills 25
The following table lists the database health monitoring processing rules.
Table 11 SQL Server Database Health Processing Rules
Processing Rule Default Value
SQL Service Database Health Enabled
SQL Service Database Health — Database is unhealthy Enabled
SQL Service Database Health — High impact database is Enabled
unhealthy
Scripts
While there are several SQL Server database health processing rules, the first of these rules
(SQL Server Database Health) stores the script parameters for database health monitoring. The
following table lists the script parameters, descriptions, and default states for this processing rule.
Table 12 SQL Server Database Health Script Parameters
Script Parameter Description Default Value
HighSevDatabas A comma-separated list of databases master, tempdb,
es that are of high importance and model, msdb,
require extra health checks distribution,
onepoint
InformationEven Generates an information event when False (Disabled)
t the script is run
Processing Rules
The database configuration monitoring processing rules are listed in the following locations:
• \SQL Server 2000\SQL Server 2000 Health and Availability Monitoring\Event
Processing Rules\SQL Server Database Configuration Monitoring
• \SQL Server 7.0\SQL Server 7.0 Health and Availability Monitoring\Event
Processing Rules\SQL Server Database Configuration Monitoring
The following table lists the database configuration monitoring processing rules.
Table 13 SQL Server Database Health Processing Rules
Processing Rule Default Value
SQL Server Database Configuration Monitoring Disabled
SQL Server Database Configuration Monitoring — Enabled
Database is not configured correctly
Scripts
The SQL Server Database Configuration Monitoring processing rule stores the script parameters
for database configuration auditing. The following table lists the script parameters, descriptions,
and default states for this processing rule.
Recommended Knowledge and Skills 27
Important
The default state for database configuration monitoring script
parameters indicates whether an event is generated for a
configuration setting that is either enabled or disabled. For
example, if the default state of the AutoClose parameter is set
to False, an event is generated if the AutoClose configuration
setting on a database is enabled.
Exclusions are implemented by using a text file on the monitored server that lists database
names. If databases that are to be excluded are in named instances, the database name should be
preceded with the instance name. All databases are assumed to be in the default instance unless
an instance is specified.
Save the file as SQLExclude.txt and place it in the c:\ folder.
The exclusions file is parsed when read. An invalid entry results in the reading being terminated
for the invalid line. Reading continues at the next line until the end of the file is reached. An
exclusion file can contain any number of databases; however, an exclusions list places an
overhead on monitoring and should not be overused.
The following example shows a typical exclusion file.
Northwind
Master
Pubs
Instance1\Northwind
Instance1\Pubs
Instance2\Northwind
• Log Truncations – The total number of times the database's transaction log has been
truncated.
• Logins/second – The total number of logins started per second.
• Memory Grants Pending – The count per second of processes waiting for a
workspace memory grant.
• Mixed Page Allocations/second – The count per second of pages allocated from
mixed extents. An extent is the smallest amount of space (eight contiguous pages or
16 KB) allocated for a table or index.
• Page Writes/second – The count per second of issued database page writes. Page
writes are generally expensive. One method for reducing page-write activity is to
ensure that the free buffer pool does not run out of free buffers. If it does, page writes
occur while waiting for an unused cache buffer to flush.
• Pages Allocated/second – The count per second of pages allocated to database objects
that are used for storing index or data records.
Each named instance performance collection script can be toggled to adjust the individual
performance counters that it collects. Each collected performance counter can be enabled and
disabled by adjusting the script parameter.
Note
By default all scripts are disabled, but all counters are enabled.
When enabling a script, all performance counters are collected.
Disk
• Disk Free Space Capacity
• Disk Queue Length
• Disk Read Latency (threshold)
• Disk Write Latency (threshold)
Memory
• Page Read/Sec
• Page Writes/Sec
• Pages/Sec
• Page Nonpaged Bytes
• Pool Paged Bytes
Network
• Bytes Received/Sec
• Bytes Sent/Sec
• Bytes Total/Sec
Operations Tasks
The best practice is to review and prioritize all alerts on a daily basis. In addition, perform other
tasks on a regular basis, depending on your environment. Many important problems do not cause
alerts, but they still require periodic attention. The SQL Server Management Pack generates
reports that display data over time and present patterns that indicate problems. Review the reports
to resolve issues before they generate alerts.
You can perform the daily, weekly, and monthly tasks as specified in this guide. However, adjust
the frequency of these tasks to meet the needs of your particular environment.
Daily Tasks
On a daily basis, perform the following tasks:
• Review all open alerts.
• Verify that all servers running SQL Server are communicating with the MOM
Administrator console.
• Review warnings (optional).
34 Recommended Knowledge and Skills
Verifying That All SQL Servers Are Communicating with the MOM
Administrator Console
Communication failure between the servers running SQL Server and the monitoring
infrastructure prevents you from receiving alerts so that you can examine and resolve them.
To verify that servers running SQL Server are communicating with the
MOM Administrator console
1. In the MOM Administrator console, navigate to Monitor, All Agents.
2. In the right pane, click the Last Contact column heading. This sorts all computers
based on the last contact time. If the last contact time is greater than five minutes,
determine why the computer is not communicating with MOM.
Weekly Tasks
In addition to the tasks that you perform daily, review the following reports weekly:
• SQL Server Critical Events
• SQL Server Critical Events Trend by Day
• SQL Server Lock Performance Analysis
• SQL Server Log Performance Analysis
• SQL Server Memory Performance Analysis
For a description of the reports, see the “Reports” section later in this guide.
Recommended Knowledge and Skills 35
Monthly Tasks
In addition to the tasks you perform daily, and the reports you review weekly, review reports in
the following categories on a monthly basis:
Capacity planning and trending
• SQL Server Backup Device Capacity Planning by Day
• SQL Server User Connections by Day
• SQL Server User Connections by Peak Hours
SQL Server performance analysis (if using replication)
• SQL Server Distribution Replication Performance Analysis
• SQL Server Log Reader Replication Performance Analysis
• SQL Server Merge Replication Performance Analysis
• SQL Server Overall Replication Performance Analysis
• SQL Server Snapshot Replication Performance Analysis
Other reports
Review other reports as appropriate for your installation.
As Needed Tasks
It is recommended that you perform the following tasks as required to ensure the availability of
SQL Server:
• Review all open alerts.
• Verify that all MOM agents are communicating.
• Use the SQL Server public views.
• Use the SQL Server Health Monitoring public views.
36 Recommended Knowledge and Skills
Troubleshooting
WMI Performance Collection
The SQL Server Management Pack can collect performance counters from named instances of
SQL Server. This collection of performance data uses Windows Management Instrumentation
(WMI) and requires access to WMI performance objects.
Due to known issues with SQL Server 2000 and Microsoft Windows Server™ 2003, WMI
performance objects might not be available. The SQL Server Management Pack checks for this
condition every 24 hours and notifies operators with an alert, with steps to resolve this issue.
Information Events
Information events can be enabled to trace the behavior of the Management Pack. Information
events can be enabled for any script-determined health check in the Management Pack, such as
Service Availability or Database Free Space Checking. When enabled, an information event is
logged when the associated script is run. The event lists the servers or instances excluded during
monitoring, such as passive nodes.
To enable information events, set the InformationEvent parameter to True on any script-
determined health check.
Recommended Knowledge and Skills 37
Reference
Processing Rules That Generate
Critical Events and Alerts
This section lists the processing rule groups and event processing rules in the SQL Server
Management Pack. These are found in the MOM Administrator console at the following
locations:
• Processing Rule Groups\Microsoft SQL Server\SQL Server 2000
• Processing Rule Groups\Microsoft SQL Server\SQL Server 7.0
Reports
This section lists the reports that are included in the SQL Server Management Pack.
38 Recommended Knowledge and Skills
Computer Groups
The following computer groups are included in the SQL Server Management Pack Refresh:
• MSSQL Server 2000
• MSSQL Server 2000 Client Side Monitoring
• Microsoft SQL Server 7.x
• Microsoft SQL Server 7.x Client Side Monitoring
Recommended Knowledge and Skills 41
Scripts
The following scripts are included in the SQL Server Management Pack Refresh:
• SQL Server 2000 Base Performance Collection (15 minutes)
• SQL Server 2000 Long Running Agent Jobs
• SQL Server 2000 Replication Performance Collection (15 minutes)
• SQL Server 2000 Report Performance Collection (15 minutes)
• SQL Server 2000 WMI Performance Object Check
• SQL Server 7.0 Instance Process ID
• SQL Server CPU Overload
• SQL Server Database Health Monitoring
• SQL Server Named Instance Detection
• SQL Server Remote Connectivity
• SQL Server Service Monitoring
• SQL Server Service Pack Compliance
• SQL Server Space Analysis