May 6, 2008 at 8:17 am
Does anyone know of the quickest way to notify me when the SQL Server Agent service stops unexpectedly?
Regards
Steve
May 7, 2008 at 8:17 am
I would just query the SQL Agent status. Poll it every few minutes or so. That's the current setup at my place. THe SQL agent status is polled an dumped into a table. Afterwards agent not running triggers an email alert from the monitoring server.
May 7, 2008 at 8:20 am
Btw here's the query
--print 'Start SQLServerAgent Status'
EXEC master.dbo.xp_servicecontrol 'QUERYSTATE','SQLServerAgent'
May 7, 2008 at 8:26 am
I would also use the Windows service level options to restart the service and perhaps send an email using a script.
May 7, 2008 at 8:34 am
That's great.
Would this have to executed from a different server though?
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply