[弃用]代理处于置疑状态。在最近几分钟内没有响应。

Microsoft.SQLServer.2012.The_agent_is_suspect._No_response_within_last_minutes_1_5_Rule (Rule)

Knowledge Base article:

摘要

出现此行为是因为 SQL Server 企业管理器轮询复制代理时,复制代理太忙而无法响应; 因此,SQL Server 企业管理器不知道复制代理的状态,无法报告复制代理是否工作。

如果复制代理失败,您会收到以下错误消息:

消息 20536 严重性 10“复制: 代理失败。”

有很多原因可导致复制代理忙: 可能有大量数据正在复制,或者由于配置或复制设计问题而导致进程长时间运行。

解决方法

若要降低消息的频率,请增加不活动阈值。

更改此值不会修复任何问题。相反,它会更改复制代理轮询其当前状态的频率。更改不活动阈值的值:

除非收到表示复制代理存在问题的其他错误消息,否则“代理处于置疑状态”消息只是信息性消息。当您收到此消息后,如果没有其他相关错误,则不要停止复制代理。如果停止复制代理,则它将回滚到所参与的进程; 反之则等待进程完成。

外部

PRB: SQL Server Enterprise Manager Reports That the Replication Agent Is Suspect(PRB: SQL Server 企业管理器报告复制代理可疑)

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流。

优先级

定义警报优先级。

1

严重性

定义警报严重性。

2

Element properties:

TargetMicrosoft.SQLServer.2012.Agent
CategoryEventCollection
EnabledTrue
Event_ID20554
Event Source$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
代理处于置疑状态。在最近几分钟内没有响应
{0}
Event LogApplication
CommentMom2012ID='{C65DF52B-B877-48C3-B546-67D69C494E84}';MOM2012GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

ID Module Type TypeId RunAs 
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ DataSource Microsoft.Windows.EventProvider Microsoft.SQLServer.SQLDefaultAccount
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2012.The_agent_is_suspect._No_response_within_last_minutes_1_5_Rule" Target="SQL2012Core!Microsoft.SQLServer.2012.Agent" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2012ID='{C65DF52B-B877-48C3-B546-67D69C494E84}';MOM2012GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>20554</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2012.The_agent_is_suspect._No_response_within_last_minutes_1_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>