由于权限不足,IIS 组件发现失败

Microsoft.Windows.InternetInformationServices.2008.FailedToPerformIISComponentDiscoveryDueInsufficientPrivs (Rule)

Knowledge Base article:

Summary

IIS 发现模块因发现规则使用的帐户权限不足,未能执行 IIS 组件发现。 必须先更正此错误,才能发现此 Web 服务器上的组件(如应用程序池或网站)。

原因

代理的操作帐户或 Privileged Monitoring RunAs 配置文件中使用的帐户没有足够的权限来执行 IIS 发现。

解决方法

将 Privileged Monitoring RunAs 配置文件配置为使用有权访问 IIS 使用的配置文件的帐户。 通常,这些文件存储在 C:\Windows\System32\inetsrv\config 中。

Element properties:

TargetMicrosoft.SystemCenter.HealthService
CategoryAlert
EnabledFalse
Event_ID33015
Event SourceHealth Service Modules
Alert GenerateTrue
Alert SeverityWarning
Alert PriorityNormal
RemotableTrue
Alert Message
由于权限不足,IIS 组件发现失败
事件说明:{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.2008.FailedToPerformIISComponentDiscoveryDueInsufficientPrivs" Enabled="false" Target="SC!Microsoft.SystemCenter.HealthService" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/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">33015</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>
<AlertOwner/>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.2008.FailedToPerformIISComponentDiscoveryDueInsufficientPrivs.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>