I am hoping someone has conquered this. I need to develop an advanced alert using the following query but the custom sql portion of the Alert engine restricts me to certain criteria.
SELECT C.Caption, Avg(C.AvgLoad)
from CPULoadByDays C
JOIN Nodes N
ON C.NodeID = N.NodeID
WHERE (N.Tower = 'DST' and avgload > 25)
AND C.DateTime >= dateadd(dd, -5, datediff(dd, 0, getdate()))
GROUP by Caption
The intent is to have Orion alert if a node has had an average CPU over the last 5 days over 25%. If so trigger an alert.
Am I over thinking this?