尝试检索状态时,查找应用程序池失败

Microsoft.Windows.InternetInformationServices.10.0.FailedToFindApplicationPoolWhileRetrievingState (Rule)

Knowledge Base article:

摘要

IIS 状态监视模块查找指定应用程序池失败。这将导致状态监视模块无法提供应用程序池的最新状态。

原因

发生此错误最有可能的原因为最近从 IIS 删除了应用程序池,且应用程序池的发现规则尚未检测到此更改。

解决方法

如果最近删除了错误消息中指定的应用程序池,则无需采取任何措施。一旦从 Operations Manager 删除应用程序池之后,下次运行应用程序池发现规则时,可以解析此警报。

Element properties:

TargetMicrosoft.Windows.Server.10.0.Computer
CategoryAlert
EnabledFalse
Event_ID33856
Event SourceHealth Service Modules
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
尝试检索状态时,查找应用程序池失败
事件说明: {0}
Event LogOperations Manager

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
Alert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.10.0.FailedToFindApplicationPoolWhileRetrievingState" Enabled="false" Target="WindowsvNextDiscovery!Microsoft.Windows.Server.10.0.Computer" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Operations Manager</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">33856</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Health Service Modules</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="Alert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertName/>
<AlertDescription/>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.10.0.FailedToFindApplicationPoolWhileRetrievingState.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/EventDisplayNumber$</SuppressionValue>
</Suppression>
<Custom1/>
<Custom2/>
<Custom3/>
<Custom4/>
<Custom5/>
<Custom6/>
<Custom7/>
<Custom8/>
<Custom9/>
<Custom10/>
</WriteAction>
</WriteActions>
</Rule>