Windows 时间服务运行状况

Microsoft.Windows.Server.2012.R2.AD.AvailabilityEssentialService.W32Time.ServiceCheck (UnitMonitor)

监视 Windows 服务:Windows 时间服务的运行状况

Knowledge Base article:

摘要

监视 Windows 时间服务是否正在此域控制器上运行。此服务在网络中的所有客户端和服务器上保持日期与时间同步。

如果该服务已停止,则无法进行日期和时间同步。

原因

Windows 时间服务未运行。

解决方案

验证 Windows 时间服务是否已设置为自动启动并且正在运行。

Element properties:

TargetMicrosoft.Windows.Server.2012.R2.AD.DomainControllerRole
Parent MonitorMicrosoft.Windows.Server.2012.R2.AD.AvailabilityEssentialServices.AggregateMonitor
CategoryCustom
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityHigh
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableFalse
AccessibilityPublic
Alert Message
Windows 时间服务未运行
Windows 时间服务未运行。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.2012.R2.AD.AvailabilityEssentialService.W32Time.ServiceCheck" Accessibility="Public" Enabled="true" Target="AD2012R2Core!Microsoft.Windows.Server.2012.R2.AD.DomainControllerRole" ParentMonitorID="Microsoft.Windows.Server.2012.R2.AD.AvailabilityEssentialServices.AggregateMonitor" Remotable="false" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>Custom</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.2012.R2.AD.AvailabilityEssentialService.W32Time.ServiceCheck.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>High</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Error" MonitorTypeStateID="NotRunning" HealthState="Error"/>
<OperationalState ID="Success" MonitorTypeStateID="Running" HealthState="Success"/>
</OperationalStates>
<Configuration>
<ComputerName>.</ComputerName>
<ServiceName>W32Time</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>