I am trying to check all the poller status and alert is any are down. I can use this in the database manager to see the KeepAlive time
SELECT KeepAlive FROM [dbo].[Engines]
I need to be able to execute it with SWQL or Swiss to assign it to a variable in a power shell script to check it against the current time to alarm if it is not close to the current time. Can anyone give me the syntax to use to do this?