Guide To Microsoft System Center Management Pack For SQL Server 2014 Replication
Guide To Microsoft System Center Management Pack For SQL Server 2014 Replication
Guide To Microsoft System Center Management Pack For SQL Server 2014 Replication
The Operations Manager team encourages you to provide any feedbacks on the management
pack by sending them to [email protected].
Copyright
This document is provided "as-is". Information and views expressed in this document, including
URL and other Internet website references, may change without notice. You bear the risk of
using it.
Some examples depicted herein are provided for illustration only and are fictitious. No real
association or connection is intended or should be inferred.
This document does not provide you with any legal rights to any intellectual property in any
Microsoft product. You may copy and use this document for your internal, reference purposes.
You may modify this document for your internal, reference purposes.
Microsoft, Active Directory, Windows, and Windows Server are trademarks of the Microsoft
group of companies.
Getting started................................................................................................................................7
Supported Configurations...........................................................................................................7
Prerequisites...............................................................................................................................9
Mandatory Configuration..........................................................................................................10
Monitoring Scenarios................................................................................................................11
Job failure..............................................................................................................................13
Data Flow..................................................................................................................................13
Logical structure....................................................................................................................14
Publication flow.....................................................................................................................14
Security Configuration...............................................................................................................21
Run As Profiles.......................................................................................................................22
Required permissions............................................................................................................22
Low-Privilege Environments...................................................................................................23
Dashboards...............................................................................................................................31
Links..............................................................................................................................................33
Guide History
Release Date Changes
December, 2016 Added support for configurations where computer host names are
(version 6.7.15.0 longer than 15 symbols
RTM) Fixed: MonitorDistributorSnapshotFreeSpace fails when being
launched against SQL Server 2014 SP2
Fixed: Wrong source detection in logging
Updated the visualization library
June, 2016 Decreased database timeout value for some workflows to match
(version 6.7.2.0) new connection logic
6
Getting started
In this section:
Supported Configurations
Prerequisites
Mandatory Configuration
Supported Configurations
This management pack is designed for the following versions of System Center Operations
Manager:
A dedicated Operations Manager management group is not required for this management pack.
The following table details the supported configurations for the Management Pack for Microsoft
SQL Server 2014 Replication:
Configuration Support
SQL Server 2014 64-bit SQL Server 2014 Database Engine on 64-bit
OS
Clustered servers No
Note that neither SQL Server Express edition (SQL Server Express, SQL Server Express with Tools,
SQL Server Express with Advanced Services) support SQL Server Agent, Log Shipping, Always On,
7
OLAP Services and Data Mining, SQL Server In-Memory OLTP, Analysis Services and Integration
Services.
Also, SQL Server Express and SQL Server Express with Tools don't support Reporting Services and
Full text search. However, SQL Server Express with Advanced Services support Full text search
and Reporting Services with limitations.
All SQL Server Express editions support Database mirroring as Witness, and Replication as
Subscriber only.
For more information, see features supported by SQL Server 2014 editions:
http://go.microsoft.com/fwlink/?LinkId=717843
Important
Agentless monitoring is not supported by Management Pack for Microsoft SQL Server 2014
Replication.
Note
Please refer to “Monitoring Scenarios” section for a full list of monitoring scenarios
supported by this management pack.
Note
For more information and detailed instructions on setup and configuration see “Configuring
the Management Pack for Microsoft SQL Server 2014 Replication” section of this guide.
Note
This management pack doesn’t discover database engines and database objects. It is
recommended to import the Microsoft System Center Management Pack for SQL Server
2014 management pack to enable discovery, monitoring and health rollup for SQL Server
2014 Replication databases. This management pack depends on management pack for SQL
Server 2014, i.e. installation of management pack for SQL Server 2014 is required.
8
Prerequisites
As a best practice, you should import the Windows Server Management Pack for the operating
system you are using. The Windows Server Management Packs monitor aspects of the operating
system that influence the performance of computers running SQL Server, such as disk capacity,
disk performance, memory utilization, network adapter utilization, and processor performance.
File Description
9
File Description
Mandatory Configuration
To configure Management Pack for Microsoft SQL Server 2014 Replication complete following
steps:
Review the “Configuring the Management Pack for Microsoft SQL Server 2014
Replication” section of this guide.
Enable the Agent Proxy option on all agents that are installed on servers, which host an
Instance of SQL Server 2014 Replication. For more information about enabling Agent
Proxy option see “How to enable Agent Proxy option” section of this guide.
Associate SQL Server 2014 Replication Run As profiles with accounts that have
appropriate permissions. For more information about configuring Run As profiles see
“How to configure Run As profile” section of this guide.
Monitoring Scenarios
Data Flow
Note
For details on the discoveries, rules, monitors, views, and reports contained in this
management pack, see following sections of this guide:
10
Monitoring Scenarios
Distributor
Publisher
Subscriber
Publication
Subscription
Each managed replication object is discovered and monitored using a number of rules and
monitors. Please refer to the “Appendix: Management Pack Objects and Workflows” section for
the full list of rules and monitors targeted to replication objects.
For more information, see Distributor and Publisher Information Script in the MSDN Library
For more information, see Distributor and Publisher Information Script in the MSDN Library
11
Publication Discovery and monitoring
For each managed publisher instance, the publications on it are discovered and monitored using
a number of rules and monitors. Please refer to the “Appendix: Management Pack Objects and
Workflows” section for the full list of rules and monitors targeted to publication.
You may also consider the “Job failure” scenario for per-job failure monitoring.
For more information, see Run Replication Maintenance Jobs (SQL Server Management Studio) in the
MSDN Library
12
Job failure
The management pack defines a monitor targeted at the Distributor and Subscriber. These
monitors oversee the replication agents’ jobs and change the monitor state when the job has
the following states:
Job Expired
Job Failed
Job is Disabled
Job Execution Failed and was Not in Accordance with the Schedule
Job is Retry
Job Execution was Stopped and was Not in Accordance with the Schedule
Please refer to “Appendix: Management Pack Objects and Workflows” section for the full list of
rules and monitors targeted to Replication Agents.
Data Flow
The following diagrams show the data flows in this management pack for:
Logical structure
Publication flow
See Terms and Definitions Appendix for more details on the diagrams contents.
13
Logical structure
Publication flow
14
15
Replication Database Health
Replication Database Health is built for the Databases participating in replication process as
published database.
Top-level structure
16
Replication agent files are located under <drive>:\Program Files\Microsoft SQL Server\100\
COM. The following table lists the replication executable names and file names. Click the link for
an agent to view its parameter reference.
In addition to replication agents, a replication has a number of jobs that perform scheduled and
on-demand maintenance.
Replication Maintenance Jobs
Replication uses the following jobs to perform scheduled and on-demand maintenance.
Agent History Clean Up: Removes replication agent history Runs every ten
Distribution from the distribution database. minutes
Distribution Clean Up: Removes replicated transactions from Runs every ten
Distribution the distribution database. Deactivates minutes
subscriptions that have not been
synchronized within the maximum
distribution retention period.
Expired Subscription Clean Up Detects and removes expired Runs every day at
subscriptions from publication 1:00 A.M.
databases.
17
Reinitialize Subscriptions Detects all subscriptions that have data No default
Having Data Validation Failures validation failures and marks them for schedule (not
re-initialization. The next time the enabled by
Merge Agent or Distribution Agent default).
runs, a new snapshot will be applied at
the Subscribers.
Replication Agents Checkup Detects replication agents that are not Runs every ten
actively logging history. It writes to the minutes.
Microsoft Windows event log if a job
step fails.
18
Virtual Subscriber level structure
In this section:
Creating a new management pack for storing overrides has the following advantages:
When you create a management pack for the purpose of storing customized settings for a
sealed management pack, it is helpful to base the name of the new management pack on
the name of the management pack that it is customizing, such as “Microsoft SQL Server
2014 Replication Overrides”.
Creating a new management pack for storing customizations of each sealed management
pack makes it easier to export the customizations from a test environment to a production
environment. It also makes it easier to delete a management pack, because you must delete
any dependencies before you can delete a management pack. If customizations for all
management packs are saved in the Default Management Pack and you need to delete a
single management pack, you must first delete the Default Management Pack, which also
deletes customizations to other management packs.
For more information about sealed and unsealed management packs, see Management Pack
Formats. For more information about management pack customizations and the default
management pack, see About Management Packs.
20
How to enable Agent Proxy option
To enable Agent Proxy option complete following steps:
Note
Please refer to “Run As Profiles” section for the detailed explanation of what Run As profiles
are defined in Management Pack for Microsoft SQL Server 2014 Replication.
Note
Please refer to “Appendix: Run As Profiles” section for the full list of discoveries, rules and
monitors to identify rules and monitors associated with each Run As Profile.
Security Configuration
This section provides guidance on configuring the security for this management pack.
In this section:
21
Run As Profiles
Required Permissions
Low-Privilege Environments
Run As Profiles
When the Management Pack for Microsoft SQL Server 2014 Replication is imported for the first
time, it creates four new Run As profiles:
Note
For more information about configuring Run As profiles see “How to configure Run As
profile” section of this guide.
Note
Please refer to “Appendix: Run As Profiles” section for the full list of discoveries, rules and
monitors to identify rules and monitors associated with each Run As Profile.
Required permissions
This section describes how to configure required permissions for the Management Pack for
Microsoft SQL Server 2014 Replication. All workflows (discoveries, rules and monitors) in this
management pack are bound to Run As profiles described in “Run As Profiles” section. To enable
the monitoring, appropriate permissions should be granted to Run As accounts and these
22
accounts should bound to respective Run As Profiles. Subsections below describe how to grant
permissions at Operating System and SQL Server level.
Note
Please refer to “Run As Profiles” section for the detailed explanation of what Run As profiles
are defined in Management Pack for Microsoft SQL Server 2014 Replication.
Note
For more information about configuring Run As profiles see “How to configure Run As
profile” section of this guide.
Note
Please refer to “Appendix: Run As Profiles” section for the full list of discoveries, rules and
monitors to identify rules and monitors associated with each Run As Profile.
Low-Privilege Environments
23
To configure permissions on the agent machine
1. On the agent machine, add the SSReplMonitoring domain user to the “Performance
Monitor Users” local group.
2. Add the SSReplMonitoring domain user to “EventLogReaders” local group.
3. Go to HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\EventLog, Open
Permissions settings, add Low-Privilege group SSReplMPLowPriv to the security list, and
grant a special permission (besides the default one):
1. - Set Value
2. - Create Subkey
3. - Read Control
4. Add the SSReplMPLowPriv domain group as a member to the local Users group.
5. Go to Local Computer Policy – Windows Settings – Security Settings – Local Policies – User
Rights Assignment and configure the “Allow log on locally” policy to add the
SSReplMPLowPriv domain group in order to log on locally.
6. Grant Read permission on “HKLM:\Software\Microsoft\Microsoft SQL Server” registry path
for SSReplMPLowPriv.
7. Grant “Execute Methods”, “Enable Account”, “Remote Enable”, “Read Security” permissions
to SSReplMPLowPriv for the following WMI namespaces:
root
root\cimv2
root\default
root\Microsoft\SqlServer\ComputerManagement11(12)
D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)
(A;;CCLCSWLOCRRC;;;IU)(A;;CCLCSWLOCRRC;;;SU)S:
(AU;FA;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;WD)
In this case, the following command line grants sufficient access to SSReplSDK for remote
reading information about the SQL Server service (please replace colored strings with
appropriate values and keep everything on a single text line):
Note
You can obtain SID of a user through WMIC USERACCOUNT command.
For example,
wmic useraccount where (name='SSReplSDK' and domain='%userdomain%') get name,sid
Note
The monitoring account user must have the following permissions to 'C:\Windows\Temp' folder:
Modify
Read & Execute
List Folder contents
Read
Write
USE msdb;
go
CREATE ROLE db_executor;
GRANT EXECUTE TO db_executor;
go
Then, grant execute permissions for SSReplMPLowPriv user by means of this role.
USE msdb;
go
EXEC sp_addrolemember 'db_executor', ' yourdomain\SSReplMPLowPriv';
go
7. For each Publication, select Properties – Publication Access List and add SSReplMPLowPriv
user to the list.
8. Also, other permissions need to be granted in all Replication instances.
use master
go
grant select on master.dbo.sysperfinfo to [yourdomain\SSReplMPLowPriv]
go
grant execute on master.dbo.xp_sqlagent_notify to [yourdomain\SSReplMPLowPriv]
go
grant execute on master.dbo.xp_sqlagent_enum_jobs to [yourdomain\SSReplMPLowPriv]
go
26
grant execute on master.dbo.xp_sqlagent_param to [yourdomain\SSReplMPLowPriv]
go
grant execute on master.dbo.xp_sqlagent_is_starting to [yourdomain\SSReplMPLowPriv]
go
grant execute on master.dbo.xp_instance_regenumvalues to [yourdomain\
SSReplMPLowPriv]
go
use msdb
go
grant execute on msdb.dbo.sp_help_alert to [yourdomain\SSReplMPLowPriv]
go
grant execute on msdb.dbo.sp_help_notification to [yourdomain\SSReplMPLowPriv]
go
grant select on msdb.dbo.sysalerts to [yourdomain\SSReplMPLowPriv]
go
grant select on msdb.dbo.sysoperators to [yourdomain\SSReplMPLowPriv]
go
grant select on msdb.dbo.sysnotifications to [yourdomain\SSReplMPLowPriv]
go
grant select on msdb.dbo.sysjobschedules to [yourdomain\SSReplMPLowPriv]
go
grant select on msdb.dbo.sysschedules to [yourdomain\SSReplMPLowPriv]
go
grant select on msdb.dbo.sysjobhistory to [yourdomain\SSReplMPLowPriv]
go
grant select on msdb.dbo.sysjobservers to [yourdomain\SSReplMPLowPriv]
go
grant execute on msdb.dbo.agent_datetime to [yourdomain\SSReplMPLowPriv]
go
27
grant select on msdb.dbo.sysjobs to [yourdomain\SSReplMPLowPriv]
go
Note
The Distributor may have more than one Distribution database (one for specific Publisher).
28
b. Set “Microsoft SQL Server Replication Distributor Availability from Subscriber
Monitoring Run As Profile” to use the SSReplAvDb Run As account.
c. Set “Microsoft SQL Server Replication Monitoring Run As Profile” to use the
SSReplMonitoring Run As account.
d. Set “Microsoft SQL Server Replication SCOM SDK Discovery Run As Profile” to use
the SSREPLSDK Run As account.
PowerShel
OS Version SCOM Version .NET Version l version
(2.0<=version<4.0) with TLS 1.2
update*
Windows 2012 version>=
and >=3.0
and above MINIMAL_SUPPORTED**
(4.0<=version<4.6) with TLS 1.2
update*
* .NET Framework TLS 1.2 updates can be downloaded from TLS 1.2 support for Microsoft SQL
Server page (Client component downloads section).
Active Alerts
“All Replication Related Objects” diagram view provides an information about all SQL Server
Replication objects and their relations.
“SQL Server Replication Database Health” state view provides information about all databases
participating in replication as published database. From this view, it is easy to open the diagram
view specific to the published database.
Monitoring
Note
Please refer to “Appendix: Management Pack Views and Dashboards” section of this
guide for the full list of views.
Note
Some views may contain very long list of objects or metrics. To find a specific object or
group of objects, you can use the Scope, Search, and Find buttons on the Operations
Manager toolbar. For more information, see “Finding Data and Objects in the Operations
Manager Consoles” article in the Operations Manager Help.
Dashboards
This management pack includes a set of rich dashboards, which provide detailed information
about SQL Server 2014 Replication. Each dashboard has a navigation widget (located in the
leftmost part of the dashboard), which can be used to switch the current presentation context,
i.e. the information displayed by other widgets depends on the object selected in the navigation
widget.
Note
“Refresh Rate” – this setting defines how often dashboard refreshes data on a client. This
setting does not change the actual collection frequency of metrics on a server.
“Time Interval” – this setting defines for which period to display data. The Performance
widget on the “Instance” view depends on this setting.
“Background Color” – change background color for all views.
Note
Use menu button of Datacenter Dashboard or a group In order to add a group or tile.
Note
To delete or edit a tile just right click on the tile and select required action.
31
Note
Background color, time interval and refresh rate settings are applied to the Datacenter
Dashboard and all Instance Dashboards and can be set from the Datacenter Dashboard
menu.
For more information, see Guide to Microsoft System Center Management Pack for
Microsoft SQL Server Dashboards
This class is a dynamic application used to group distributors, publishers and subscribers, which
are linked with a one exact published Database.
The collapsed group tile consists of two parts, the left part displays the number of objects in the
most critical state. The right part of the widget shows the number of alerts with the highest
severity.
32
SQL Server 2014 Replication Datacenter Dashboard
The SQL Server 2014 Replication Datacenter Dashboard is a specific dashboard for SQL
Server 2014 Replication. This dashboard contains only SQL Server 2014 Replication group by
default that contains all SQL Server 2014 Distributors, Publishers and Subscribers.
Links
The following links connect you to information about common tasks that are associated with
System Center Management Packs:
For free training on System Center Operations Manager, see the System Center 2012 R2 Operations
Manager Management Pack course at the Microsoft Virtual Academy (MVA).
For questions about the Operations Manager and management packs, see the System Center
Operations Manager community forum (http://go.microsoft.com/fwlink/?LinkID=179635).
Important
All information and content on non-Microsoft sites is provided by the owner or the
users of the website. Microsoft makes no warranties, express, implied, or statutory, as
to the information at this website.
33
Appendix: Terms and Definitions
Term Definition
Distributor Distributor is a database instance that acts as a store for replication specific
data associated with one or more Publishers. Each Publisher is associated with
a single database (known as a distribution database) at the Distributor. In many
cases, a single database server instance acts as both Publisher and Distributor.
This is known as a local Distributor. When Publisher and Distributor are
configured on separate database server instances, the Distributor is known as a
remote Distributor.
Distribution database Distribution database stores replication status data, metadata about the
publication, and, in some cases, acts as a queue for data moving from Publisher
to Subscribers. In many cases, a single database server instance acts as both
Publisher and Distributor. This is known as a local Distributor. When Publisher
and Distributor are configured on separate database server instances, the
Distributor is known as a remote Distributor.
Publisher Publisher is a database instance that makes data available to other locations
through replication. A Publisher can have one or more publications, each
defining a logically related set of objects and data to replicate.
Publication Publication is a collection of one or more articles from one database. Such
grouping of multiple articles into a publication makes it easier to specify a
logically related set of data and database objects that are replicated as a unit. A
publication can contain different types of articles, including tables, views,
stored procedures, and other objects. When tables are published as articles,
filters can be used to restrict the columns and rows of the data sent to
Subscribers.
Article Article identifies a database object that is included in a publication.
Subscriber Subscriber is a database instance that receives replicated data. A Subscriber
can receive data from multiple Publishers and publications. Depending on the
selected replication type, a Subscriber can also pass data changes back to the
Publisher, or republish the data to other Subscribers.
Subscription Subscription is a request for a copy of a publication to be delivered to a
Subscriber. A subscription defines what publication will be received, where and
when. There are two types of subscriptions: push and pull.
Push subscription Push subscription is represented by a subscription created and administered at
the Publisher. The distribution agent or merge agent for this subscription runs
at the Distributor. For more information about subscriptions, see Subscribe to
Publications.
Pull Subscription Pull subscription is represented by a subscription configured and maintained at
each recipient. The subscribers administer the synchronization schedules and
can pull changes whether they consider it necessary. For more information
about subscriptions, see Subscribe to Publications.
34
Term Definition
Virtual Distributor Virtual Distributor is a virtual entity, which serves to represent a real distributor
on the diagram view for a Replication Database Health.
Virtual Publisher Virtual Publisher is a virtual entity serves to represent a real publisher on the
diagram view for a Replication Database Health.
Virtual Subscriber Host Virtual Subscriber Host is a virtual entity that contains Virtual Subscribers.
Virtual Subscriber Virtual Subscriber is a virtual entity serves to represent a real Subscriber on the
diagram view for a Replication Database Health.
Virtual Publication Host Virtual Publication Host is a virtual entity that contains Publications.
Publication database Publication database is the database on the Publisher that is the source of data
and database objects to be replicated.
Virtual Subscription Virtual Subscription is a virtual entity serves to represent a real subscription on
the diagram view for a Replication Database Health. The purpose of this entity
is to hide all subscriptions when the diagram is opened for the first time.
35
Publications – [target: Publication SQL 2014, scope: SQL Server 2014
Replication Publications]
Summary
Performance
36
Appendix: Management Pack Objects and Workflows
The Management Pack for Microsoft SQL Server 2014 Replication discovers the object types
described in the following sections.
37
Interval (seconds) The recurring interval of time 14400
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
38
access the database during the
specified period.
39
Generate Alerts Defines whether the workflow True
generates an Alert.
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
40
source, delimited by '|' symbol
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
Transport Prefix of the protocol to access http
the wsman service
Replication Merge Agent State for the Distributor (aggregated for all Subscriptions)
This monitor checks the state of the Merge agents for all Subscriptions on the Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow True
generates an Alert.
Estimated Job Duration Threshold which is being used 15
to check the job schedule
compliance
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Show Jobs with Unknown State Include jobs with unknown false
state to the monitor output
and alert context. Will affect
health.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
41
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
Replication Snapshot Agent State for Distributor (aggregated for all Publications)
This monitor checks the state of the Snapshot Agent services for all Publications on the
Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow True
generates an Alert.
Estimated Job Duration Threshold which is being used 15
to check the job schedule
compliance
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Show Jobs with Unknown State Include jobs with unknown false
state to the monitor output
and alert context. Will affect
health.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
42
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow True
generates an Alert.
Error Threshold Error Threshold 10
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
Warning Threshold The monitor will change the 0
state to Warning if the value
drops below this threshold.
43
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
Unhealthy subscriptions count Unhealthy subscriptions count 0
threshold threshold
Replication Log Reader Agent State for the Distributor (aggregated for all Publications)
This monitor checks the state of the Replication Log Reader for all Publications serviced by the
Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow True
generates an Alert.
Estimated Job Duration Threshold which is being used 15
to check the job schedule
compliance
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Show Jobs with Unknown State Include jobs with unknown false
state to the monitor output
and alert context. Will affect
health.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
44
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
Replication Queue Reader Agent State for Distributor (aggregated for all Publications)
This monitor checks the status of the Queue Reader Agent services for all Publications on the
Distributor. Note: This monitor is disabled by default. Please use overrides to enable it when
necessary.
Name Description Default value
Enabled Enables or disables the No
workflow.
Generate Alerts Defines whether the workflow True
generates an Alert.
Estimated Job Duration Threshold which is being used 15
to check the job schedule
compliance
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Show Jobs with Unknown State Include jobs with unknown false
46
state to the monitor output
and alert context. Will affect
health.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
49
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
50
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Interval (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
51
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
52
MSSQL 2014 Replication: Expired Subscriptions (%)
The Percentage of Expired Subscriptions for the Distributor
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
MSSQL 2014 Replication: Count of the Queue Reader Instances for the Distributor
Count of the Queue Reader Instances for the Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Frequency (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
MSSQL 2014 Replication: Count of the Snapshot Agents Instances for the Distributor
Count of the Snapshot Agent Instances for the Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Frequency (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
MSSQL 2014 Replication: Count of the Distribution Agent Instances for the Distributor
Count of the Distribution Agent Instances for the Distributor
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Frequency (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
54
MSSQL 2014 Replication: Snapshot Agent: Delivered Commands per Second
The number of commands per second delivered to the Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Frequency (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
MSSQL 2014 Replication: Count of Failed Replication Agents Jobs on the Distributor
Count of Failed Replication Agents Jobs on the Distributor
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
55
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
MSSQL 2014 Replication: Log Reader Agent: Delivered Transactions per Second
The number of transactions per second delivered to the Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Frequency (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
MSSQL 2014 Replication: Log Reader Agent: Delivered Commands per Second
The number of commands per second delivered to the Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
56
generates an Alert.
Frequency (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
57
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Threshold Threshold 0
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
MSSQL 2014 Replication: Count of the Merge Agent Instances for the Distributor
Count of the Merge Agent Instances for the Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Frequency (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
MSSQL 2014 Replication: Count of the Log Reader Agent Instances for the Distributor
Count of the Log Reader Agent Instances for the Distributor.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Frequency (seconds) The recurring interval of time 900
in seconds in which to run the
workflow.
58
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
59
This discovery rule discovers an event log collection target for a Microsoft SQL Server 2014
Replication. This object is used to collect module errors from event logs of management server
computers.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Interval (seconds) The recurring interval of time 14400
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
60
generates an Alert.
Priority Defines Alert Priority. 2
Severity Defines Alert Severity. 2
62
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
63
specified period.
64
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
66
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
Warning Threshold The monitor will change the 3
state to Warning if the value
drops below this threshold.
67
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
68
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
69
This monitor checks the latency for commands in the Distribution database waiting to be
delivered to the Subscribers.
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow True
generates an Alert.
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Threshold Threshold 60
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
70
Show Jobs with Unknown State Include jobs with unknown false
state to the monitor output
and alert context. Will affect
health.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
71
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
72
Name Description Default value
Enabled Enables or disables the Yes
workflow.
Generate Alerts Defines whether the workflow No
generates an Alert.
Interval (seconds) The recurring interval of time 300
in seconds in which to run the
workflow.
Synchronization Time The synchronization time
specified by using a 24-hour
format. May be omitted.
Timeout (seconds) Specifies the time the 300
workflow is allowed to run
before being closed and
marked as failed.
Timeout for database The workflow will fail and 15
connection (seconds) register an event, if it cannot
access the database during the
specified period.
73
Run As Profile Workflow Workflow
Type
Microsoft SQL Server Monitor Distribution Agents state (aggregated for all
Replication Monitoring Publications)
Run As Profile
Monitor Availability of the Distribution database.
74
Run As Profile Workflow Workflow
Type
75
Run As Profile Workflow Workflow
Type
77
78
Appendix: Known Issues and Troubleshooting
Error events similar to “Loading managed module type in
"Microsoft.SQLServer.2012.Replication. Module.Discovery…” assembly may occur in the
Operations Manager Windows event log.
Issue: The distributor, publisher and subscriber workflows may throw this error after the
Replication MP is installed.
Resolution: No action is required since the errors occur only once when the management packs
are imported.
Alerts from the "All Publishers Discovered for Distributor" monitor are not placed into the
Active Alerts folders of the SQL Server MPs.
Issue: Since the monitored objects are managed by the management group and are hosted by
virtual objects, it is impossible to map them to the view.
Resolution: The objects may be found in the root folder: Monitoring\Active Alerts
Incorrect databases are listed in the "SQL Server Replication Database Health" view.
Issue: If a user enters incorrect databases in the replication jobs, the databases will be
discovered and put in the view. Such objects will have no properties and throw errors each time
the user tries to work with them.
Resolution: No resolution.
Alert description does not change untill the whole alert is resolved.
Issue: The alert context of the aggregated monitors lists all objects that have issues. The context
will not be updated until the whole alert is resolved.
Resolution: This is a known SCOM issue. There is no known workaround at the moment.
79
The "Distribution Database Availability from Subscriber" monitor throws the following error
"Cannot configure CredSSP" for Subscriber on Windows Server 2008 R2 Enterprise.
Issue: By default, PowerShell 2.0 is installed on Windows 2008 and PowerShell 4.0 on Windows
2012. If Distributors are run on Windows 2012 and Subscribers are run on Windows 2008, the
PowerShell versions are different, and there are two possible errors: "Cannot configure
CredSSP" and “Failed to configure CredSSP on Distributor”.
Resolution: Install the same PowerShell version on Subscribers as the one installed on the
Distributors. Enable CredSSP for servers running Windows 2008.
"Discovery data couldn't be inserted to the database" error may occur upon creation of a new
subscription.
Issue: Upon installation of the MP, DB engine may fail to discover all the data during the first
launch, and the above error may appear in the log.
Resolution: The Discovery Distributor may need some extra time to discover the data. The
second option is to clear the cash of the agent manually.
When SQL Express instance is used, Subscriber targeted rules and minitors may throw an
error.
Issue: When SQL Express instance is used, rules and monitors that target on Subscriber can
throw the following error: "The filename, directory name, or volume label syntax is incorrect" in
the event log.
Resolution: No resolution.
80
timeout, the Operations Manager may throw the following error with relationship target:
"Discovery data couldn't be inserted to the database, RelationshipInstance TypeId".
Resolution: To avoid the issue, make sure that the timeout in overrides for database discovery in
DB-engine is less or equal to the timeout in overrides for Distributor or Subscriber instances
discovery.
Monitoring workflows throw "Access denied" exception when a default Run As profile is used.
Issue: A number of monitoring workflows throw "Access denied" exception when a default Run
As profile is used, and monitoring agent uses Local System account.
Resolution: A domain account (or account with access to all Replication machines) should be
used for default Run As profile.
Property reference errors may appear in the agent log upon the MP upgrade.
Issue: When the Management Pack is upgraded from version 6.6.4.0. to version 6.7.2.0, some
property reference errors may appear in the agent log. The affected monitors are as follows:
81