MSSQL 2014: ワークフローはターゲット システムに接続できませんでした

Microsoft.SQLServer.2014.Script_Failed_Database_Login (Rule)

監視スクリプトまたは検出スクリプトにデータベースへの接続のアクセス許可がないか、データベースがアクセス不可能です。

Knowledge Base article:

概要

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

原因

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

解決方法

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

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

名前

説明

既定値

有効

 

はい

アラートを生成する

 

はい

優先度

 

1

重要度

 

2

Element properties:

TargetMicrosoft.SQLServer.2014.DBEngine
CategoryAlert
EnabledTrue
Event_ID4201
Event SourceHealth Service Script
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
MSSQL 2014: ワークフローはターゲット システムに接続できませんでした
{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.2014.Script_Failed_Database_Login" Enabled="true" Target="SQL2014Core!Microsoft.SQLServer.2014.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">4201</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="SQL2014Core!Microsoft.SQLServer.2014.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.2014.Script_Failed_Database_Login.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>