Sysid 設定警示規則

Microsoft.Solaris.10.LogFile.Syslog.Sysidconfig.Command.Alert (Rule)

Sysid 設定訊息的警示規則。

Knowledge Base article:

摘要

在 sysidconfig 的記錄檔中發現錯誤。 Sysidconfig 會在初始安裝和重新設定重新開機期間執行。

設定

此規則預設為停用。 若要啟用此規則以進行監視,請使用覆寫來設定記錄檔路徑及啟用規則。 記錄檔路徑是使用名為 LogFile 的可覆寫內容進行設定,而其值必須設定為將接收這些事件之記錄檔的完整路徑,如同 Syslog 設定中所定義。 您可以使用覆寫,針對所有執行個體或特定執行個體或群組來變更參數值。

原因

錯誤或警告可能表示裝置或應用程式的設定失敗。

解決方式

驗證失敗的應用程式或裝置的設定

Element properties:

TargetMicrosoft.Solaris.10.Computer
CategoryEventCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
偵測到 Sysid 設定警示
{0}

Member Modules:

ID Module Type TypeId RunAs 
EventDS DataSource Microsoft.Unix.SCXLog.Datasource Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Solaris.10.LogFile.Syslog.Sysidconfig.Command.Alert" Target="Microsoft.Solaris.10.Computer" Enabled="true" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<!-- [TYPE] Solaris SysID False -->
<!-- [INPUT] Executing Configuration Applications at: Thu Mar 29 06:07:45 2007 -->
<!-- [INPUT] Executing config app: /usr/sbin/sysidnfs4 -->
<!-- [INPUT] Executing config app: /usr/sbin/sysidpm -->
<!-- [INPUT] Executing config app: /lib/svc/method/sshd -->
<!-- [INPUT] Executing config app: /usr/lib/cc-ccr/bin/eraseCCRRepository -->
<!-- [INPUT] Completed Executing Configuration Applications at: Thu Mar 29 06:07:45 2007 -->
<DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.Datasource">
<Host>$Target/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Host>
<LogFile>/var/log/sysidconfig.log</LogFile>
<RegExpFilter>.+</RegExpFilter>
<IndividualAlerts>false</IndividualAlerts>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Solaris.10.LogFile.Syslog.Sysidconfig.Command.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>