データベース ヘルス ポリシー

Microsoft.SQLServer.2012.DBErrorUserPolicyStateMonitor (UnitMonitor)

"エラー" 重大状態を持つ 2 状態モニター。データベースをファセットとして持ち、定義済みのエラー カテゴリの 1 つをポリシー カテゴリとして持つカスタム ユーザー ポリシーの状態を反映するために使用される。

Knowledge Base article:

概要

This monitor checks the evaluation result of policy in the SQL server instance.The monitor is healthy if the policy was evaluated successfully.Otherwise it is unhealthy.

解決方法

To diagnose this issue, contact the database administrator or the policy owner with the policy name.The policy owner can determine the root cause of the policy execution evaluation that resulted in an unhealthy state of the monitor.

Element properties:

TargetMicrosoft.SQLServer.2012.DatabaseErrorUserPolicy
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2012.TwoStatePolicyMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2012.DBErrorUserPolicyStateMonitor" TypeID="Microsoft.SQLServer.2012.TwoStatePolicyMonitorType" Accessibility="Public" Enabled="true" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Target="SQL2012Core!Microsoft.SQLServer.2012.DatabaseErrorUserPolicy" Priority="Normal">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="HealthState" HealthState="Success"/>
<OperationalState ID="Critical" MonitorTypeStateID="ErrorState" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ConnectionString>$Target/Host/Host/Property[Type="SQL!Microsoft.SQLServer.DBEngine"]/ConnectionString$</ConnectionString>
<PolicyName>$Target/Host/Property[Type="SQL!Microsoft.SQLServer.Database"]/DatabaseName$.$Target/Property[Type="SQL2012Core!Microsoft.SQLServer.2012.Policy"]/PolicyName$</PolicyName>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
</Configuration>
</UnitMonitor>