Author |
Topic |
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2015-01-07 : 14:11:51
|
I have a problem that sql agent has gone down and I didn't konwHow can I set up an alert if sql agent goes down? |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2015-01-07 : 14:16:37
|
Do you have any monitoring software such as SCOM? If you don't have any software, you could setup a Powershell script on a central server to check the state of services. Just run the script on an interval so that you are made aware quickly.Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2015-01-08 : 01:02:22
|
what is the best waypowershell didn't work as it's not a mail server |
|
|
ahmeds08
Aged Yak Warrior
737 Posts |
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
|
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2015-01-08 : 01:36:06
|
the problem with powershell is it didn't send the email as the sql server is not a mail servercan I use an external mail server to send the email alert? |
|
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
Posted - 2015-01-08 : 01:39:37
|
Yes, you can use an external mail server.Assuming the relevant levels of authority are in place. Use this example to explore sending email through powershell -http://www.sqlserver-dba.com/2012/01/sql-server-send-email-using-powershell.htmlJack Vamvas--------------------http://www.sqlserver-dba.com |
|
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2015-01-08 : 11:49:44
|
Why does it matter if SQL Server is a mail server to use Powershell? It is irrelevant.Tara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
jackv
Master Smack Fu Yak Hacker
2179 Posts |
Posted - 2015-01-12 : 01:45:31
|
When you set up monitoring - and if the SQL Agent Service is set to Automatic, configure the monitoring agent to automatically start the service if it is not on. If this fails , trigger an alertJack Vamvas--------------------http://www.sqlserver-dba.com |
|
|
esthera
Master Smack Fu Yak Hacker
1410 Posts |
Posted - 2015-01-12 : 02:45:03
|
>>When you set up monitoring - and if the SQL Agent Service is set to Automatic, configure the monitoring agent to automatically start the service if it is not on. If this fails , trigger an alertWhere do I do this - this sounds like what i want |
|
|
|