[非推奨] MSSQL 2016: ワークフローはターゲット システムに接続できませんでした

Microsoft.SQLServer.2016.Script_Failed_Database_Login (Rule)

監視スクリプトまたは検出スクリプトにデータベースへの接続のアクセス許可がないか、データベースがアクセス不能です。この管理パックでは、このルールは廃止されていると見なされます。

Knowledge Base article:

概要

監視スクリプトまたは検出スクリプトにデータベースへの接続のアクセス許可がないか、データベースがアクセス不能です。スクリプト名およびデータベース名の詳細情報については、アラート メッセージを参照してください。

この管理パックでは、このルールは廃止されていると見なされます。

原因

検出スクリプトおよび監視スクリプトは、"Microsoft SQL Server 2016 Discovery 実行アカウント" および "Microsoft SQL Server 2016 Monitoring 実行アカウント" の各プロファイルの下で動作し、ターゲット SQL Server インスタンスとデータベースへのアクセス権を持っている必要があります。これらのプロファイルで使用されるアカウントは、正しく構成される必要があります。

解決方法

検出アカウントおよび監視アカウントを正しく構成するには、管理パック ガイドにある「セキュリティの考慮事項」のセクションを参照してください。

上書き可能なパラメーター

名前

説明

既定値

有効

ワークフローを有効または無効にします。

いいえ

優先度

アラートの優先順位を定義します。

1

重要度

アラートの重大度を定義します。

2

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
CategoryAlert
EnabledFalse
Event_ID4211
Event SourceHealth Service Script
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
MSSQL 2016: ワークフローはターゲット システムに接続できませんでした
{0}
Event LogOperations Manager

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2016.Script_Failed_Database_Login" Enabled="false" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" ConfirmDelivery="true" Remotable="true" Priority="Normal">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">4211</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Script</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Params/Param[2]</XPathQuery>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>[$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$][$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.ServerRole"]/InstanceName$:</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2016.Script_Failed_Database_Login.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>