[取代] 代理程式很可疑。過去幾分鐘內沒有任何回應。

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

Knowledge Base article:

摘要

當 SQL Server Enterprise Manager 輪詢複寫代理程式時,如果複寫代理程式太忙而無法回應;因而 SQL Server Enterprise Manager 不清楚複寫代理程式的狀態,也無法報告複寫代理程式是否正常運作,則會發生此問題。

如果複寫代理程式失敗,您會收到下列錯誤訊息:

訊息 20536 嚴重性 10「複寫: 代理程式失敗」。

導致複寫代理程式忙碌的原因有很多:可能是正在複寫的資料太多,或者是設定或複寫設計問題導致處理序長時間執行。

解決方式

若要降低訊息出現的頻率,請增加無活動臨界值。

變更此值無法解決任何問題,只是變更了複寫代理程式輪詢目前狀態的頻率。若要變更非使用狀態臨界值:

除非您收到顯示複寫代理程式發生問題的其他錯誤訊息,否則「代理程式可疑」訊息僅為參考用訊息。收到此訊息時,如果沒有發生其他相關錯誤,無需停止複寫代理程式。如果停止複寫代理程式,則會復原其使用的處理序,然後您必須重新啟動處理序;不然請等待處理序完成。

外部資源

PRB: SQL Server Enterprise Manager 回報複寫代理程很可疑

可覆寫的參數

名稱

描述

預設值

已啟用

啟用或停用該工作流程。

優先順序

定義警示優先順序。

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>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>