Use the Alarm Action Dialog to create or modify a rule. This is what a rule looks like. Most rules have one or more conditions. All rules have at least one action.
For all alarms where the day of the week is Sunday or Saturday and the alarm severity is High send email to jsmith@company.com
For any given rule, all the actions are taken when all the conditions are met. For this reason you may want to create multiple rules. For examples see Example Alarm Action Rules (page 1).
Note: The Alarm Action Dialog is opened from the Alarm Action Editor (page 1).
Name
Give this rule a meaningful name. The default name is New rule x.
Select the conditions for the alarm action rule:
Condition | Description |
---|---|
The alarm has been cleared |
Take action when the alarm severity returns to |
The alarm has existed for more than… |
Take action when the alarm severity has been other than You define the period of time in hours, minutes or days. For example, take action when the alarm severity has been other than normal for 5 days. |
The alarm hasn't been acknowledged within… |
Take action when an alarm requiring acknowledgement has not been acknowledged for a specified period of time. You define the period of time: in hours, minutes or days. This condition is applicable to alarms requiring acknowledgement. Alarms are configured to require acknowledgement using the Alarms Dialog (page 1). Alarms are acknowledged in Spotlight Today (page 1) and Spotlight Home Pages (page 1). |
The alarm is… |
Select the alarm(s) this rule applies to (or the alarms this rule does not apply to). If this condition is not specified this rule applies to all alarms. |
The alarm severity is… |
Take action when the alarm severity changes to one of the following: |
The connection is… |
Select the connection(s) this rule applies to (or the connections this rule does not apply to) See also the conditions for the connection type and the connection's tag. |
The connection type is… |
Select from the connection types: Analysis Services, High Availability, SQL Server Replication, SQL Azure, SQL Server, VMWare and Windows. See also the conditions for the connection and the connection's tag. |
The connection's tag is… |
This rule is conditional on the connection matching a specified tag name. Tag names are applied to connections on the Connection Properties Dialog - Tags Page (page 1). Tag names are a way to group your connections in a way that is meaningful to you and independent of the connection name or connection type. |
The date is… |
Does this rule apply to a specific date? Does this rule apply to every date except a specific date? The date is as per the date on the Spotlight Diagnostic Server. |
The day of the week is… |
Does this rule apply to one or more days of the week? For example, the rule may apply only to the weekend or only to weekdays. The day of the week is as per the day on the Spotlight Diagnostic Server. |
The details contain… |
Refer to the text that is displayed in the Details column of the Alarm Log (page 1) when the alarm is raised. Take action when the Details column contains (or does not contain) one or more specific phrases. To edit the text that will display in the Details column, see the Alarms Dialog (page 1). |
The time of day is between… |
Does this rule apply to a specific time of day. For example, the rule may apply to times between 6pm and 6am. The time of day is as per the time on the Spotlight Diagnostic Server. |
Select the action(s) to take when all the above condition(s) are met
Description | |||||||||
---|---|---|---|---|---|---|---|---|---|
Decrease the severity |
Decrease the severity to one of: Notes:
| ||||||||
Execute a Powershell script |
Note: This feature is available only in Spotlight on SQL Server Enterprise. Execute a Powershell script on the monitored server. The script is executed remotely using the username/password configured on the Spotlight Diagnostic Server. Tip: To use variables in your Powershell script see Alarms - Message Variables (page 1) for more information. Note: This action fails if the Windows connection to the monitored server is configured to Use Diagnostic Server credentials. See "Connections to Windows Servers" (page 1) for more information. | ||||||||
Execute a SQL script |
Note: This feature is available only in Spotlight on SQL Server Enterprise. Execute a SQL script on the monitored server. This action is applicable only to SQL Server connections. The script is executed under the username and password Spotlight uses to connect to the SQL Server. Tip: To use variables in your SQL script see Alarms - Message Variables (page 1) for more information. | ||||||||
Run a program |
Note: This feature is available only in Spotlight on SQL Server Enterprise. Execute a command line on the Spotlight Diagnostic server. When filling in the command line field:
The behavior of the invoked program depends on the nature of the program.
| ||||||||
Run actions again after |
Re-evaluate this rule after a specified period of time. If the conditions of this rule are still true at that time then repeat the actions. Continue to repeat these actions at this interval for as long as all conditions are true. You define the period of time: in hours, minutes or days. For example, if the rule is to Send an email if a CPU alarm is raised and Run actions again after 5 minutes, then an email will be sent every 5 minutes for as long as the CPU alarm is raised. | ||||||||
Send email to |
Note: This feature is available only in Spotlight on SQL Server Enterprise. Send an email. Enter the target email address, subject line and content of the message to be sent. Tips:
| ||||||||
Stop processing further rules | No further rules will be executed. Execute this rule to completion first. See "Example Alarm Action Rules" (page 1) for more information. | ||||||||
Suppress the alarm |
Return the alarm severity to Note: If the alarm requires acknowledgment and has not been acknowledged, then following this action the alarm severity will be returned to normal without acknowledgement. | ||||||||
Write the alarm details to a Windows Event log |
Write the details of the alarm to the Windows Event log on the Spotlight Diagnostic Server.
|