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>