ConfigMgr 2012 Client Site Code Monitor

ConfigMgr.2012.Client.Monitoring.ConfigMgr.2012.Client.Application.Site.Code.Monitor (UnitMonitor)

Knowledge Base article:

Summary

This monitor detects the site code configured on the ConfigMgr 2012 client.

Configuration

A Critical alert is generated if a incorrect ConfiMgr site code is configured on the ConfigMgr 2012. Please manually configure the correct site code and enable this monitor via override.

Causes

The ConfigMgr 2012 Client is configured to report to a incorrect ConfigMgr primary site. This could be caused by incorrect site code specified during ConfiMgr 2012 client installation, or auto site assignments with overlapping boundaries.

Resolutions

Please manually change the ConfigMgr 2012 client site code from Configuration Manager in Control Panel of the ConfigMgr 2012 client computer.

Element properties:

TargetConfigMgr.2012.Client.Library.ConfigMgr.2012.Client.Application
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledFalse
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeConfigMgr.2012.Client.Library.Check.Client.Site.Code.2.State.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Incorrect ConfigMgr site code detected on the ConfigMgr 2012 Client
Incorrect ConfigMgr site code detected on ConfigMgr 2012 client {0}.

Current Site Code: {1}
Correct Site Code: {2}
RunAsDefault

Source Code:

<UnitMonitor ID="ConfigMgr.2012.Client.Monitoring.ConfigMgr.2012.Client.Application.Site.Code.Monitor" Accessibility="Public" Enabled="false" 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.Site.Code.2.State.MonitorType" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="ConfigMgr.2012.Client.Monitoring.ConfigMgr.2012.Client.Application.Site.Code.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='SiteCodeFromClient']$</AlertParameter2>
<AlertParameter3>$Data/Context/Property[@Name='CorrectSiteCode']$</AlertParameter3>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="OK" MonitorTypeStateID="OK" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>43200</IntervalSeconds>
<SyncTime/>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<CorrectSiteCode/>
<TimeoutSeconds>120</TimeoutSeconds>
</Configuration>
</UnitMonitor>