Service State

Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.ServiceState (UnitMonitor)

The monitor alerts when the windows service for the SSAS instance is not in running state for a duration greater than the configured threshold.

Knowledge Base article:

Summary

The monitor alerts when the windows service for the SSAS instance is not in running state for a duration greater than the configured threshold.

Causes

When this monitor reports the “SQL Server Analysis Service Windows service is not running” Alert, this indicates that the SSAS instance is configured to start automatically, but remained in a Stopped state over a duration exceeding the configured threshold. The default configured value is 900 seconds (15 minutes).

The monitor will not trigger the alert prior to the configured duration, when the service is stopped. This allows an administrator to restart the service without triggering the alert. But if the service does not entered the running state within the configured duration subsequently though, the alert will be triggered.

The SSAS Windows service could fail to start even when configured to start automatically, for many reasons, including startup failure for the process, operating system issues that prevent a successful startup, or authentication failures for the service account.

Resolutions

Resolving this alert requires administrators to understand and consider numerous factors including normal expected instance startup time, causes for unexpected failures of the service to start, authentication requirements for the server, and conditions in the environment.

Instance started times can vary depending on the size of the database and other factors. Administrators may configure this setting accordingly to adjust for normal expected startup times for a given SSAS instance accordingly.

Actions to remediate the condition when the SSAS service is not started (or does not start when attempted):

External

Starting and Stopping SQL Services

Overrideable Parameters

Name

Description

Default Value

Alert only if service startup type is automatic

This may only be set to 'true' or 'false'. If set to 'false'; then alerts will be triggered no matter what the startup type is set to. Default is 'true'.

true

Enabled

Enables or disables the workflow

True

Generates Alerts

Defines whether the workflow generates an Alert

True

Interval Seconds

The recurring interval of time in seconds in which to run the workflow.

60

Number of samples

Health State changes if the number of subsequent check failures is greater than or equal to the Minimum Number of Checks.

15

Synchronization Time

The synchronization time specified by using a 24-hour format. May be omitted.

 

Element properties:

TargetMicrosoft.SQLServer.2008.AnalysisServices.Instance
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.SQLServer.2008.AnalysisServices.MonitorType.Instance.ServiceState
RemotableTrue
AccessibilityPublic
Alert Message
SSAS 2008: SQL Server Analysis Service Windows service is not running
The Windows service for the SSAS instance {1} is not running on computer {0} for a duration greater than the specified threshold.
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.ServiceState" Accessibility="Public" Enabled="true" Target="SQLAS!Microsoft.SQLServer.2008.AnalysisServices.Instance" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.SQLServer.2008.AnalysisServices.MonitorType.Instance.ServiceState" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Microsoft.SQLServer.2008.AnalysisServices.UnitMonitor.Instance.ServiceState.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="SQLAS!Microsoft.SQLServer.2008.AnalysisServices.ServerRole"]/InstanceName$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Running" HealthState="Success"/>
<OperationalState ID="Error" MonitorTypeStateID="NotRunning" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ServiceName>$Target/Property[Type="SQLAS!Microsoft.SQLServer.2008.AnalysisServices.Instance"]/ServiceName$</ServiceName>
<ClusteredInstance>$Target/Property[Type="SQLAS!Microsoft.SQLServer.2008.AnalysisServices.Instance"]/Clustered$</ClusteredInstance>
<CheckStartupType>true</CheckStartupType>
<SampleCount>15</SampleCount>
<IntervalSeconds>60</IntervalSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>