ConfigMgr 2012 Client Business Hours Service Window Monitor

ConfigMgr.2012.Client.Monitoring.ConfigMgr.2012.Client.Application.Business.Hours.Service.Window.Monitor (UnitMonitor)

Checks if at least one Business Hours Service Window (Service Window Type 6) exist on the ConfigMgr 2012 client

Knowledge Base article:

Summary

This monitor detects if the Business Hours service windows are configured for the ConfigMgr 2012 Client.

Configuration

A critical alert is raised when the business hours are not configured for the ConfigMgr 2012 client

When the monitor enters Healthy state, the alert is automatically closed.

Resolutions

Configure Work Information (business hours) in the ConfigMgr 2012 client Software Center, under "Options" tab.

Element properties:

TargetConfigMgr.2012.Client.Library.ConfigMgr.2012.Client.Application
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeConfigMgr.2012.Client.Library.Check.Client.Service.Window.2.State.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
No "Business Hours Service Window" assigned to the ConfigMgr 2012 client
No "Business Hours Service Window" assigned to the ConfigMgr 2012 client {0}.

Service Window Type: {1}
RunAsDefault

Source Code:

<UnitMonitor ID="ConfigMgr.2012.Client.Monitoring.ConfigMgr.2012.Client.Application.Business.Hours.Service.Window.Monitor" Accessibility="Public" Enabled="true" Target="C2CL!ConfigMgr.2012.Client.Library.ConfigMgr.2012.Client.Application" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="C2CL!ConfigMgr.2012.Client.Library.Check.Client.Service.Window.2.State.MonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="ConfigMgr.2012.Client.Monitoring.ConfigMgr.2012.Client.Application.Business.Hours.Service.Window.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='SWType']$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="OK" MonitorTypeStateID="OK" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>86400</IntervalSeconds>
<SyncTime/>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<ServiceWindowType>6</ServiceWindowType>
<TimeoutSeconds>120</TimeoutSeconds>
</Configuration>
</UnitMonitor>