UNIX/Linux Run As Account Alert Rule

Microsoft.Unix.RunAsAccountErrors.Alert (Rule)

Alert rule for UNIX/Linux Run As account error messages.

Knowledge Base article:

Summary

An error occurred due to misconfiguration of the UNIX/Linux Run As accounts.

Causes

One or more of the UNIX/Linux Run As profiles have not been configured or contain the wrong UNIX/Linux account type.

Resolutions

Check the properties of the UNIX/Linux Run As profiles. There are three required profiles: one for unprivileged monitoring, one for privileged monitoring and one for agent maintenance. Each profile must be associated with at least one UNIX/Linux account of the appropriate type and profiles should not be associated with accounts of the wrong type.

Element properties:

TargetMicrosoft.SystemCenter.ManagementServer
CategoryEventCollection
EnabledTrue
Event SourceCross Platform Modules
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
UNIX/Linux Run As profile association error event detected
{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>