Alert dotyczący zdarzenia w dzienniku błędów hosta wirtualnego serwera Apache

Microsoft.ApacheHTTPServer.VirtualHost.Unix.ErrorLog.Alert (Rule)

Ta reguła generuje alert, gdy wiersz zarejestrowany w dzienniku błędów hosta wirtualnego jest zgodny z określonym wyrażeniem regularnym.

Knowledge Base article:

Podsumowanie

Ta reguła monitoruje dziennik błędów hosta wirtualnego serwera Apache i generuje alerty w przypadku znalezienia nowych wierszy zgodnych ze zdefiniowanym wyrażeniem regularnym.

Rozwiązania

Znajdź przyczynę problemu opisanego w komunikacie o błędzie.

Konfiguracja

Ta reguła jest domyślnie wyłączona. Włącz ją za pomocą przesłonięć i zdefiniuj wyrażenie regularne na potrzeby generowania alertów.

Konfiguracja domyślna

Parametr

Wartość domyślna

Włączone

false

RegExpFilter

error

W celu zmiany wartości parametrów zdefiniowanych powyżej dla wszystkich lub określonych wystąpień bądź grup można zastosować przesłonięcia.

Element properties:

TargetMicrosoft.ApacheHTTPServer.VirtualHost.Unix
CategoryEventCollection
EnabledFalse
Alert GenerateTrue
Alert SeverityInformation
Alert PriorityNormal
RemotableTrue
Alert Message
Alert w dzienniku błędów hosta wirtualnego serwera Apache
{0}

Member Modules:

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

Source Code:

<Rule ID="Microsoft.ApacheHTTPServer.VirtualHost.Unix.ErrorLog.Alert" Target="Microsoft.ApacheHTTPServer.VirtualHost.Unix" Enabled="false" Remotable="true">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="EventDS" TypeID="Unix!Microsoft.Unix.SCXLog.Privileged.Datasource">
<Host>$Target/Host/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/PrincipalName$</Host>
<LogFile>$Target/Property[Type="Microsoft.ApacheHTTPServer.VirtualHost"]/ErrorLog$</LogFile>
<RegExpFilter>error</RegExpFilter>
<IndividualAlerts>false</IndividualAlerts>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="Health!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>0</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.ApacheHTTPServer.VirtualHost.Unix.ErrorLog.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>