WAS は、アプリケーション プールに対して自動停止を行う実行可能ファイルを実行できませんでした

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

Knowledge Base article:

概要

Web サイトおよび Web アプリケーションは、インターネット インフォメーション サービス (IIS) アプリケーション プールの可用性に依存しています。IIS アプリケーション プールもまた、Windows プロセス アクティブ化サービス (WAS) に依存しています。アプリケーション プールの開始または停止中に WAS が実行されていなかったりエラーが発生したりすると、Web サイトおよび Web アプリケーションが利用できない場合があります。

解決方法

自動停止を行う実行可能ファイルをチェックする

アプリケーション プールが World Wide Web 発行サービス (W3SVC) によって停止されようとしているときに、ユーザー指定の実行可能ファイルを自動的に実行するように構成することができます。たとえば、実行可能ファイルは、アプリケーション プールへのトラフィックを別のサーバーにリダイレクトできます。このファイルは、IIS マネージャーで指定できます。ファイルは、ApplicationHost.configファイル内の system.applicationHost/applicationPools/failure セクションの autoShutdownExe 属性で表されます。

autoShutdownExe プロセスを実行できない場合、考えられる解決方法は以下のとおりです:

パスとファイル名が適切に指定されていることを確認する

停止を行う実行可能ファイルのアクセス制御リストをチェックする

プログラムが独立して実行できることを確認する

アプリケーション プールの停止イベントとは別に、実行可能プログラムの実行をテストします。アプリケーション プールの停止とは関係なく、プロセスを実行できれば、アプリケーション プールが 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>