A Conta Executar como não existe no sistema de destino ou não tem permissões suficientes

Microsoft.SQLServer.2005.Script_Failed_Database_Login (Rule)

Um script de monitoramento ou descoberta não tem permissões para conectar-se ao banco de dados.

Knowledge Base article:

Resumo

Um script de monitoramento ou descoberta não tem permissões para conectar-se ao banco de dados. Para obter informações detalhadas sobre o nome do script e o nome do banco de dados, consulte a descrição do alerta.

Causas

Os scripts de descoberta e monitoramento trabalham nos perfis “Conta de Descoberta do SQL Server” e “Conta de Monitoramento do SQL Server”. As contas usadas nesses perfis devem ser configuradas corretamente.

Resoluções

Para configurar contas de descoberta e monitoramento corretamente, consulte a seção “Considerações sobre Segurança” no Guia do Pacote de Gerenciamento.

Element properties:

TargetMicrosoft.SQLServer.2005.DBEngine
CategoryAlert
EnabledTrue
Event_ID4001
Event SourceHealth Service Script
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
A Conta Executar como não existe no sistema de destino ou não tem permissões suficientes
{0}
Event LogOperations Manager

Member Modules:

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

Source Code:

<Rule ID="Microsoft.SQLServer.2005.Script_Failed_Database_Login" Enabled="true" Target="SQL2005Core!Microsoft.SQLServer.2005.DBEngine" ConfirmDelivery="true" Remotable="true" Priority="Normal">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider" RunAs="SQL!Microsoft.SQLServer.SQLDefaultAccount">
<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">4001</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="SQL!Microsoft.SQLServer.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.2005.Script_Failed_Database_Login.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>