Exchange 2013 Check Database Activation Preference

Exc.15.Custom.Monitor.CheckActivePreference (UnitMonitor)

This monitor checks if Mailbox Database is mounted on Active Preference 1, if not monitor will change to Warning state and an alert will be generated.

Element properties:

TargetMicrosoft.Exchange.15.Custom.MailboxDB
Parent MonitorSystem.Health.ConfigurationState
CategoryConfigurationHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeExc.15.Custom.MonitorType.PsScript.CheckActivePreference
RemotableTrue
AccessibilityInternal
Alert Message
Exchange 2013 Mailbox Activation Preference Check
The database is not activated on activation preference 1. Currently mounted on {0} .
RunAsDefault

Source Code:

<UnitMonitor ID="Exc.15.Custom.Monitor.CheckActivePreference" Accessibility="Internal" Enabled="true" Target="Microsoft.Exchange.15.Custom.MailboxDB" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="true" Priority="Normal" TypeID="Exc.15.Custom.MonitorType.PsScript.CheckActivePreference" ConfirmDelivery="false">
<Category>ConfigurationHealth</Category>
<AlertSettings AlertMessage="Exc.15.Custom.Monitor.CheckActivePreference_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Property[@Name='ActPref']$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="Failure" MonitorTypeStateID="Failure" HealthState="Warning"/>
<OperationalState ID="Critical" MonitorTypeStateID="Critical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<IntervalSeconds>7200</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>