Hi,
I was wondering if there is a way to add a 'sustained' threshold for CPU monitoring with a SWQL query.
I wanted to create a CPU Monitoring dashboard that will trigger when the CPU load has reached a 90% threshold + sustained for over 30 minutes.
I created this simple dashboard, however, it's only reporting in near real-time.
select n.caption AS [Nodes],'/Orion/NetPerfMon/NodeDetails.aspx?NetObject=N:' + ToString(n.nodeid) AS [_LinkFor_Nodes],
n.CPULoad as [CPULoad]
,'/Orion/NetPerfMon/NodeDetails.aspx?NetObject=N:' + ToString(n.nodeid) AS [_LinkFor_CPULoad]
,Case
WHEN n.CPULoad < '89' THEN ('/Orion/images/ActiveAlerts/Warning.png')
WHEN n.CPULoad > '90' THEN ('/Orion/images/ActiveAlerts/Critical.png')
End as [_IconFor_CPULoad],
cp.Application_Function, cp.Asset_Type
from orion.Nodes n
left join orion.NodesCustomProperties cp on n.NodeID = cp.NodeID
where n.CPULoad > '80'
order by n.CPULoad DESC