Hi all
I'd like to create a query that allows Solarwinds to alert when a scheduled task hasn't run for the last 24 hours.
So far I have the following, but when I add in the date condition I get no data returned. If I reduce the query to what is in bold then the query returns a correct value.
SELECT Task.ID, Task.LastRunTime, Task.DisplayName as DisplayName FROM Orion.APM.Wstm.Task
WHERE Task.DisplayName LIKE 'TASKNAME' and LastRunTime > ADDSECOND(-3,GETUTCDATE())
Can anyone please offer some guidance on how to structure this so it captures any tasks that have not run in the previous 24 hours?
Thanks
Neil