Sysid 配置警报规则

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

Sysid 配置消息的警报规则。

Knowledge Base article:

摘要

在日志文件中发现 sysidconfig 的错误。在初始化安装和重配置重新启动期间执行 Sysidconfig。

原因

错误或警报可能标识设备或应用程序的配置失败。

解决方法

验证失败的应用程序或设备的配置

Element properties:

TargetMicrosoft.Solaris.8.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.8.LogFile.Syslog.Sysidconfig.Command.Alert" Target="Microsoft.Solaris.8.Computer" Enabled="true" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<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.8.LogFile.Syslog.Sysidconfig.Command.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>