WUG SQL Server Service Monitor

Bostwick.WUG.WUGSQLServerClassServiceMonitor (UnitMonitor)

Element properties:

TargetBostwick.WUG.WUGSQLServerClass
Parent MonitorBostwick.WUG.WUGSQLServerClassServicesAggregate
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Bostwick.WUG.WUGSQLServerClassServiceMonitor" Accessibility="Public" Enabled="true" Target="Bostwick.WUG.WUGSQLServerClass" ParentMonitorID="Bostwick.WUG.WUGSQLServerClassServicesAggregate" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="Running" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="NotRunning" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type='Windows!Microsoft.Windows.Computer']/PrincipalName$</ComputerName>
<ServiceName>$Target/Property[Type='Bostwick.WUG.WUGSQLServerClass']/SQLServerServiceName$</ServiceName>
<CheckStartupType>true</CheckStartupType>
</Configuration>
</UnitMonitor>