Can anyone lend a hand getting this cleanly into SWQL format? Runs great as a SQL query for reports, but what I'd love to do is stick it on the dashboard with a custom SWQL query. I've tried my hand at it but something isn't formatted quite right.
SELECT a.NodeID, a.Caption, a. Status, a.MachineType, MAX (c.DateTime) as Last_Poll FROM Orion.Nodes a JOIN Orion.CPULoad(nolock=true) c ON a.NodeID=c.NodeID where a.Status = 1 and a.UnManaged = 0 and MinuteDIFF((MAX (c.DateTime)), GetDate()) > 30