UNIX/Linux 執行身分帳戶警示規則

Microsoft.Unix.RunAsAccountErrors.Alert (Rule)

UNIX/Linux 執行身分帳戶錯誤訊息的警示規則。

Knowledge Base article:

摘要

因為 UNIX/Linux 執行身分帳戶的設定錯誤而發生錯誤。

原因

一個或多個 UNIX/Linux 執行身分設定檔尚未設定或內含錯誤的 UNIX/Linux 帳戶類型。

解決方式

檢查 UNIX/Linux 執行身分設定檔的內容。其中有三個必要的設定檔:一個用於無權限監視,一個用於特殊權限監視,另一個用於代理程式維護。每個設定檔都必須至少與一個適當類型的 UNIX/Linux 帳戶相關聯,而且設定檔不可與類型錯誤的帳戶相關聯。

Element properties:

TargetMicrosoft.SystemCenter.ManagementServer
CategoryEventCollection
EnabledTrue
Event SourceCross Platform Modules
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
已偵測到 UNIX/Linux 執行身分設定檔關聯錯誤事件
{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>