Governor uses SQL Server’s database mail feature to send emails about warnings, alerts and missing client responses. Before you can configure Governor’s mail settings, make sure you have configured SQL Server database mail first: https://msdn.microsoft.com/en-us/library/hh245116.aspx.
Configuring the database mail profile
When you've configured database mail on the server, you can configure SQL Governor to use the mail profile:
- Go to Settings: General.
- Double-click on the Database mail profile name row.
- Enter the name of your profile.
- Click on Save changes.
Configuring warning and alert emails
Alert mails are configured at the level of individual units (server/instance/database) and performance counters. For example, you could configure to receive emails for one particular server’s CPU usage only. To configure emails for a performance counter, do the following steps:
- Go to Settings: Metadata.
- Select Person settings from the dropdown.
- If your name and email are not already listed, click on Add new and add your details.
- Make sure Send email alerts is checked.
- Select Server settings from the dropdown.
- Find the server for which you want to configure emails and click the Edit icon. If the unit you want to configure emails for is an instance or a database, edit the server under which it resides.
- Select your name from the Responsible dropdown.
- Click the OK icon.
- Go to Settings: Warnings and alerts.
- Click on the server, instance or database for which you want to configure emails.
- Select a category from the dropdown.
- Find the performance counter from the list and set the thresholds.
- If you want to receive emails about warnings, set Warning action to Send mail.
- If you want to receive emails about alerts, set Alert action to Send mail.
- Click Save.
Configuring emails about missing data
If you want to receive emails when the client proxy cannot send data for some reason, make sure steps 1-8 of the previous list are completed and then do the following steps:
- Go to Settings: Watchdogs.
- Select Send mail from the Action dropdown.
- Click Save.
The emails will be sent to the person selected as the responsible person for the server. For example, if the proxy fails to send data about an instance, Governor will send an email to the person who is responsible for that instance’s server.