Regola di avviso account RunAs UNIX/Linux

Microsoft.Unix.RunAsAccountErrors.Alert (Rule)

Regola di avviso per messaggi di errore account RunAs UNIX/Linux.

Knowledge Base article:

Riepilogo

Si è verificato un errore a causa di una configurazione errata degli account UNIX/Linux RunAs.

Cause

Uno o più profili UNIX/Linux RunAs non sono stati configurati o contengono il tipo di account UNIX/Linux errato.

Risoluzioni

Verificare le proprietà dei profili di UNIX/Linux RunAs. Sono presenti tre profili obbligatori: uno per il monitoraggio non privilegiato, uno per il monitoraggio privilegiato e uno per la manutenzione dell'agente. Ciascun profilo deve essere associato con almeno un account UNIX/Linux del tipo appropriato e i profili non devono essere associati con account di tipo errato.

Element properties:

TargetMicrosoft.SystemCenter.ManagementServer
CategoryEventCollection
EnabledTrue
Event SourceCross Platform Modules
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
Rilevato evento di errore associazione profilo UNIX/Linux Run As
{0}
Event LogOperations Manager

Member Modules:

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

Source Code:

<Rule ID="Microsoft.Unix.RunAsAccountErrors.Alert" Enabled="true" Target="SC!Microsoft.SystemCenter.ManagementServer" ConfirmDelivery="true" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="EventDS" 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>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Cross Platform Modules</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<!-- Check for 4112 - SCX_E_ACTION_RUNAS_PROFILE_HAS_MAINTENANCE_ACCOUNT, i.e. maintenance account used with monitor profile -->
<!-- Check for 4113 - SCX_E_INVALID_ACTION_RUNAS_PROFILE, i.e. no account for monitor profile -->
<!-- Check for 4114 - SCX_E_INVALID_MAINTENANCE_RUNAS_PROFILE, i.e. no account for maintenance profile -->
<!-- Check for 4176 - SCX_E_WSMAN_DOES_NOT_SUPPORT_SU_ELEVATION, i.e. invalid SU elevation -->
<Pattern>411[234]|4176</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Unix.RunAsAccountErrors.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>