DHCP 服务运行监视器

Microsoft.Windows.DHCPServer.Library.UnitMonitor.DHCPServiceRunning (UnitMonitor)

由于任何活动网络接口都没有静态配置的 IP 地址或者没有活动接口,DHCP 服务没有为任何客户端提供服务。

Knowledge Base article:

解决方案

若要执行这些过程,您必须是管理员组的成员,或者您必须被委派了适当的权限。

若要重新启动 DHCP 服务器服务,请执行以下操作:

Element properties:

TargetMicrosoft.Windows.DHCPServer.Library.Server
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
DHCP 服务已停止
DHCP 服务在服务器 {0} 中已停止
RunAsMicrosoft.Windows.DHCPServer.Library.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DHCPServer.Library.UnitMonitor.DHCPServiceRunning" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.Server" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DHCPServer.Library.UnitMonitor.DHCPServiceRunning_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
</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"]/NetworkName$</ComputerName>
<ServiceName>DHCPServer</ServiceName>
<CheckStartupType/>
</Configuration>
</UnitMonitor>