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:
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>