WAS genomförde inte den automatiska avstängningen för programpoolen

Microsoft.Windows.InternetInformationServices.6.2.WAS.did.not.run.the.automatic.shutdown.executable.for.application.pool (Rule)

Knowledge Base article:

Sammanfattning

Webbplatser och webbprogram är beroende på tillgången av Internet Information Services (IIS) programpooler. IIS programpooler däremot är beroende av Windows Process Activation Service (WAS). Om WAS inte körs eller fel inträffar under start eller avstängning av en programpool, kanske webbplatser och webbapplikationer inte är tillgängliga.

Lösningar

Kontrollera den automatiska stoppåtgärden

En användarspecificerad körbar fil kan konfigureras till att köras automatiskt när en programpool stängs ned av W3SVC (World Wide Web Publishing Service). Den körbara filen kan exempelvis omdirigera trafik för programpoolen till en annan server. filen kan anges i IIS Manager och representeras av autoShutdownExe-attributet i avsnittet system.applicationHost/applicationPools/failure i ApplicationHost.config-filen.

Om autoShutdownExe-processen inte körs kan följande vara möjliga lösningar:

Kontrollera att sökvägen och filnamnet är korrekt angivna

Kontrollera åtgärdskontrollistan för den körbara filen vid avslut

Kontrollera att programmet kan köras fristående

Testkör det körbara programmet separat från en händelse av typen programpoolsnedstängning. Om processen kan köras fristående från en programpoolsnedstängning bör den köras korrekt när programpoolen inaktiveras automatiskt av WAS.

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.ApplicationPool
CategoryAlert
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider Default
Filter ConditionDetection Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter Default
WA WriteAction Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.WAS.did.not.run.the.automatic.shutdown.executable.for.application.pool" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider">
<LogName>System</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(5054|5091)$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.WAS.did.not.run.the.automatic.shutdown.executable.for.application.pool.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>