操作系统 BPA 监视器

Microsoft.Windows.Server.10.0.Monitoring.BPA.OperatingSystem.Monitor (UnitMonitor)

监视 Windows Server 2016 及更高版本操作系统的最佳实践分析程序规则的合规性。只要 Windows Nano Server 不支持 BPA PowerShell cmdlet,监视器就始终显示为“运行状况良好”。

Knowledge Base article:

摘要

此监视器用于充分利用 Windows Server 2016 及更高版本操作系统中的最佳实践分析程序(BPA)功能。 此监视器执行内置 BPA PowerShell cmdlet,验证安装的角色是否符合 BPA 规则。

Element properties:

TargetMicrosoft.Windows.Server.10.0.OperatingSystem
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Server.10.0.Monitoring.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
操作系统与最佳实践分析程序不相容
{0} 有关检测到的 BPA 问题的更多信息,请在运行状况资源管理器内操作系统 BPA 监视器的“状态更改事件”选项卡中查看诊断输出。 或者,可以手动执行“查看最佳实践分析程序”合规性结果任务以返回结果。
RunAsSystem.PrivilegedMonitoringAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.Server.10.0.Monitoring.BPA.OperatingSystem.Monitor" RunAs="System!System.PrivilegedMonitoringAccount" Accessibility="Public" Enabled="false" Target="ServervNext!Microsoft.Windows.Server.10.0.OperatingSystem" ParentMonitorID="SystemHealth!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.Server.10.0.Monitoring.MonitorType" ConfirmDelivery="true">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Microsoft.Windows.Server.10.0.Monitoring.BPA.OperatingSystem.Monitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='Message']$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="MonitorHealthyState" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="MonitorWarningState" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="MonitorErrorState" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<Interval>86400</Interval>
</Configuration>
</UnitMonitor>