SnapMgrSQLJobLastRunStateMonitor

Bostwick.SnapManager.SnapMgrSQLJobLastRunStateMonitor (UnitMonitor)

This monitors the state of the last backup job

Element properties:

TargetBostwick.SnapManager.SnapMgrSQLJob
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeSnapMgrSQLJobLastRunStateMonitor
RemotableTrue
AccessibilityPublic
Alert Message
The last Snap Manager for SQL Backup Failed.
The last backup Failed. This is the error message:
{0}
RunAsDefault

Source Code:

<UnitMonitor ID="Bostwick.SnapManager.SnapMgrSQLJobLastRunStateMonitor" Accessibility="Public" Enabled="true" Target="Bostwick.SnapManager.SnapMgrSQLJob" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="SnapMgrSQLJobLastRunStateMonitor" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Bostwick.SnapManager.SnapMgrSQLJobLastRunStateMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/DataItem/Property[@Name='LastRunStatusMessage']$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Red" MonitorTypeStateID="Red" HealthState="Error"/>
<OperationalState ID="Yellow" MonitorTypeStateID="Yellow" HealthState="Warning"/>
<OperationalState ID="Green" MonitorTypeStateID="Green" HealthState="Success"/>
</OperationalStates>
<Configuration>
<Name>$Target/Property[Type='Bostwick.SnapManager.SnapMgrSQLJob']/Name$</Name>
</Configuration>
</UnitMonitor>