FTP 服務可用性

Microsoft.Windows.InternetInformationServices.10.0.FTPServer.NTService.CheckServiceState.Monitor (UnitMonitor)

Knowledge Base article:

摘要

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

操作狀態:

IIS FTP 伺服器服務 (FTPSVC) 可能處於「服務正在執行」或「服務未執行」的操作狀態。

設定

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

原因

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

解決方式

若 IIS FTP 伺服器服務 (FTPSVC) 未執行,您可以採取下列動作來診斷問題或重新啟動服務:

啟動 FTP (FTPSVC) 服務

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.10.0.FTPServer
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
FTP 服務無法使用。
{0} 上的 FTP 服務無法使用。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.InternetInformationServices.10.0.FTPServer.NTService.CheckServiceState.Monitor" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.10.0.FTPServer" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.InternetInformationServices.10.0.FTPServer.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>FTPSVC</ServiceName>
</Configuration>
</UnitMonitor>