应用程序目录 Web 服务点上的 IIS 服务可用性监视器

Microsoft.SystemCenter2012.ConfigurationManager.ApplicationWebService.IIS.ServiceHealth (UnitMonitor)

此监视器检查 IIS 服务的可用性状态。

Knowledge Base article:

摘要

此监视器检查 IIS Web 服务器服务 (W3SVC) 的状态。 如果收到此监视器发出的警报,则必须采取措施以将服务恢复到操作状态。

此监视器与 Internet Information Service 管理包的 IIS Web 服务器服务监视器相同。 如果启用了该监视器,则可以禁用另一个监视器以避免出现重复警报。

原因

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

解决方法

如果 IIS Web 服务器服务 (W3SVC) 未运行,则可以采取以下措施来诊断此问题或重新启动此服务:

Element properties:

TargetMicrosoft.SystemCenter2012.ConfigurationManager.ApplicationWebService
Parent MonitorMicrosoft.SystemCenter2012.ConfigurationManager.RoleAggregateMonitor
CategoryAvailabilityHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
未在应用程序目录 Web 服务点上运行的 IIS 服务
计算机 {1} 上的 {0} 服务未运行。
RunAsDefault
CommentSIV:GEN0245

Source Code:

<UnitMonitor ID="Microsoft.SystemCenter2012.ConfigurationManager.ApplicationWebService.IIS.ServiceHealth" Comment="SIV:GEN0245" Accessibility="Public" Enabled="false" Target="SCCM!Microsoft.SystemCenter2012.ConfigurationManager.ApplicationWebService" ParentMonitorID="Microsoft.SystemCenter2012.ConfigurationManager.RoleAggregateMonitor" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SystemCenter2012.ConfigurationManager.ApplicationWebService.IIS.ServiceHealth_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='DisplayName']$</AlertParameter1>
<AlertParameter2>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<ServiceName>W3SVC</ServiceName>
<CheckStartupType/>
</Configuration>
</UnitMonitor>