World Wide Web Publishing 服務可用性

Microsoft.Windows.InternetInformationServices.6.2.WebServer.NTService.CheckServiceState.Monitor (UnitMonitor)

Knowledge Base article:

摘要

此監視可檢查 IIS 網頁伺服器服務的狀態 (W3SVC)。如果您接收到此監視的警示,則需要執行動作才能將服務帶回操作狀態。

操作狀態:

IIS 網頁伺服器服務 (W3SVC) 可能處於「執行中」或「未執行」操作狀態。

設定

監視器會採用一個單一組態參數,其負責控制當服務的啟動類型未設為「自動」時,是否應監視該服務。依預設,只會在服務的啟動類型為「自動」時才會監視該服務。您可以在必要時予以調整。

原因

服務可能會因許多原因而停止,其中包括:

解決方式

若 IIS 網頁伺服器服務 (W3SVC) 為「未執行」,您可以採取下列動作來診斷問題或重新啟動服務:

啟動網頁伺服器 (W3SVC) 服務

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
IIS 8 Web 伺服器無法使用
{0} 上的 IIS 8 Web 伺服器無法使用。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.6.2.WebServer.NTService.CheckServiceState.Monitor" Accessibility="Public" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.InternetInformationServices.6.2.WebServer" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.6.2.WebServer.NTService.CheckServiceState.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>W3SVC</ServiceName>
</Configuration>
</UnitMonitor>