December 11, 2012 at 3:27 am
Hello all,
I have many jobs running and for some reason sql server agents stops automatically not sure why..Can someone tell me how can we send email or notify users when my sql sevrer agent stops automatically, i have my dbmail configured...
Thanks,
December 11, 2012 at 3:33 am
You need to monitor the SQL Server Agent service at OS level using something like SCOM.
John
December 11, 2012 at 3:36 am
Could also write something in powershell as well to check the process state and send an email should it change from started to stopped
December 11, 2012 at 3:48 am
Anthony,
Can you provide me the script and the procedure to do this?
December 11, 2012 at 3:53 am
use the Get-Service cmdlet, for the service in question, then google for a smtp powershell function and build it up that way,
if you get stuck come back with your script so far and I will see where your going wrong.
December 11, 2012 at 11:52 pm
hi,
you can create bat file which will send mail to you whenever sql server agent service get stopped.
go to run-->services.msc-->sql server agent service -->property-->recovery option
---->run program
December 12, 2012 at 5:48 am
i am also looking for the solution
Hi Can you please mention in detailed for me run program is disabled to for the agent service
Thanks in advance
December 12, 2012 at 10:02 pm
Hi Friends i found the below Link
http://sqlish.com/alert-when-sql-server-agent-service-stops-or-fails/
Thanks
Viewing 8 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic. Login to reply