Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Database Mail e-mail notifications not being sent on completion of backup jobs Expand / Collapse
Author
Message
Posted Sunday, January 06, 2013 5:32 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, April 15, 2013 2:11 PM
Points: 31, Visits: 74
Hello --

I configured our backup jobs to send notifications to the administrators on their respective completion. However, the notifications have not been sent out on job completion. The jobs in question are part of a maintenance plan. When the email notifications were set up, the jobs themselves within the plan were modified rather than the maintenance plan itself. The server in question is running Windows Server 2008 R2 64-bit along with SQL Server 2008 Standard Edition.

The Database Mail utility was originally not enabled on the server, and became enabled during the procedure to set up notifications. An existing domain e-mail account was used as the intended recipient. An operator was set up for the mail notifications, and a test e-mail was sent to confirm the server was able to send out notifications. When the setup was completed, the SQL Agent was restarted.

A check of the job history indicated the backup jobs completed successfully. A check of the Database Mail history did not show any entries for the jobs that had been successful. What step(s) did I miss in this process in order to get the notifications to work?

Thanks.
Post #1403381
Posted Monday, January 07, 2013 1:26 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Today @ 5:04 PM
Points: 555, Visits: 1,036
I would start off with sending a test e-mail through Database Mail. That should test that your Database Mail profile and functionality is working as expected. Then double-check that your operators are correct and that e-mail addresses have not changed. After that I would look at the job steps again to ensure that with the maintenance plan step is complete it goes to the e-mail notification step as expected. Then you can test the Agent job starting at the e-mail notification step to ensure just that works. Then test the job from the first step to ensure that works as expected.

Joie Andrew
"Since 1982"
Post #1403450
Posted Monday, January 07, 2013 7:32 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Monday, May 20, 2013 7:35 AM
Points: 515, Visits: 1,016
Mine stopped working and I found that the exchange server had been changed without my knowing!
I had to rapidly edit a bunch of servers' database mail settings.
In the SQL Agent itself there are settings - in Management Studio, right click the SQL Server Agent for the server and select properties and ensure Enable mail Profile is selected and Database mail also.
Then in each Agent job you need to set it the notification properties to notify operator on completion
Post #1403602
Posted Monday, January 07, 2013 10:31 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, April 15, 2013 2:11 PM
Points: 31, Visits: 74
Hello --

I checked through the settings, and it appears the problem was the spelling of the email address was incorrect. I made the change, and will restart the SQL Agent later tonight. I will keep everyone apprised of the results of the change.

Thanks.
Post #1403745
Posted Tuesday, January 08, 2013 6:59 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, April 15, 2013 2:11 PM
Points: 31, Visits: 74
Hello --

The problem continues to occur even though the email address was corrected, and the SQL Agent was restarted on the server. I checked the history of the most recent job, and the error message that I am seeing is the following:

The job succeeded. The Job was invoked by Schedule 17 (Backup <job name>.Backup Differential). The last step to run was step 1 (Backup Differential). NOTE: Failed to notify 'RODB Admins' via email.


What else can I do to correct this problem?

Thanks.
Post #1404219
Posted Tuesday, January 08, 2013 7:35 AM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Today @ 5:04 PM
Points: 555, Visits: 1,036
Did anything get logged in the Database Mail log this time?

What happens if you run the job again, but start from the e-mail step?


Joie Andrew
"Since 1982"
Post #1404243
Posted Tuesday, January 08, 2013 7:44 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Wednesday, May 22, 2013 2:19 PM
Points: 2,037, Visits: 3,761
Under the SQL Server Agent Properties >> Alert System, have you enabled a default mail profile and selected the proper fail-safe operator?

______________________________________________________________________________
"Never argue with an idiot; They'll drag you down to their level and beat you with experience"
Post #1404248
Posted Wednesday, January 09, 2013 9:55 AM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Monday, April 15, 2013 2:11 PM
Points: 31, Visits: 74
Hello --

Thanks for everyone's help. The issue was neither the Enable Mail Profile or Fail-Safe Operator options were enabled for the agent. Once those were set, and the agent restarted, the e-mails went through.

Thanks again.
Post #1404879
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse