I need to setup an alert if SQLAgent is down using a query, I have not bee able to figure it out

I want to use this query 

IF EXISTS(SELECT 1 FROM sys.dm_exec_sessions WHERE program_name = 'SQLAgent - Generic Refresher')
    SELECT 'TRUE'
ELSE
    SELECT 'FALSE'

Parents Reply Children
No Data