IIS 可用性运行状态依赖于 WMSvc 服务

Microsoft.Windows.InternetInformationServices.6.2.ServerRole.HealthDependsOn.Microsoft.Windows.InternetInformationServices.6.2.WMService.Availability.DependancyMonitor (DependencyMonitor)

Knowledge Base article:

摘要

此监视器检查 Web 管理服务 (WMSvc) 的状态。如果收到此监视器发出的警报,则需要执行操作以将服务恢复为操作状态。

操作状态:

Web 管理服务 (WMSvc) 的操作状态可以是“服务正在运行”或“服务未运行”。

配置

监视器将采用单个配置参数来控制启动类型未设置为“自动”时是否应监视服务。默认情况下,仅在服务启动类型为“自动”时,才会监控服务。可根据需要进行调整。

原因

服务可以由于很多原因而停止,包括:

解决方法

如果 Web 管理服务 (WMSvc) 未运行,你可以通过执行下列操作来诊断问题或重新启动服务:

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.ServerRole
Parent MonitorSystem.Health.AvailabilityState
AlgorithmWorstOf
Source MonitorSystem.Health.AvailabilityState
RelationshipMicrosoft.Windows.InternetInformationServices.6.2.ServerRole.Hosts.Microsoft.Windows.InternetInformationServices.6.2.WMService
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveFalse
RemotableTrue
AccessibilityPublic

Source Code:

<DependencyMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.ServerRole.HealthDependsOn.Microsoft.Windows.InternetInformationServices.6.2.WMService.Availability.DependancyMonitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.ServerRole" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" RelationshipType="Microsoft.Windows.InternetInformationServices.6.2.ServerRole.Hosts.Microsoft.Windows.InternetInformationServices.6.2.WMService" MemberMonitor="SystemHealth!System.Health.AvailabilityState">
<Category>AvailabilityHealth</Category>
<Algorithm>WorstOf</Algorithm>
<MemberUnAvailable>Error</MemberUnAvailable>
</DependencyMonitor>