SQL Service

Microsoft.HPC.2008.Monitor.HeadNode.SQLService (UnitMonitor)

Knowledge Base article:

Summary

This monitor tracks the status of the SQL Server (COMPUTECLUSTER) service. When this service is stopped, none of the administration or job tasks can be performed.

Configuration

For a failover cluster, the SQL Server (COMPUTECLUSTER) service is not configured to start automatically on both of the head nodes and the “Alert only if service startup type is automatic” option is set to True by default in the management pack. To monitor the SQL Server (COMPUTECLUSTER) service on a failover cluster, you must manually change the “Alert only if service startup type is automatic” option to False on the current active head node.

Causes

This error can be caused by any of the following:

Resolutions

To troubleshoot and fix this problem:

Additional

Recovery task will be run automatically to restart the service, so you may find the service keeps restarting while you are trying to stop it. There are couple of options to avoid it happen:

Element properties:

TargetMicrosoft.HPC.2008.HeadNode
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.CheckNTServiceStateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
SQL Server Service is not running
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.HPC.2008.Monitor.HeadNode.SQLService" Accessibility="Public" Enabled="true" Target="Microsoft.HPC.2008.HeadNode" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.CheckNTServiceStateMonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.HPC.2008.Monitor.HeadNode.SQLService_AlertMessageResourceID">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
</AlertSettings>
<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"]/NetworkName$</ComputerName>
<ServiceName>MSSQL$COMPUTECLUSTER</ServiceName>
<CheckStartupType/>
</Configuration>
</UnitMonitor>