Hi All,
I am looking to create a KPI that determines how long a servers CPU was above its threshold (say 80%) for last month (and another for the current month). I am trying to divide the polls that were overby all polls in the month. so far I have:
select count(1) as overload
from orion.CPULoad as CP
where nodeid = '620'
and CP.maxload > 80
AND (MONTH(TOLOCAL(cp.DateTime)) = (MONTH(TOLOCAL(ADDMONTH(-1,GETUTCDATE())))))
and
select count(1) as overload
from orion.CPULoad as CP
where nodeid = '620'
AND (MONTH(TOLOCAL(cp.DateTime)) = (MONTH(TOLOCAL(ADDMONTH(-1,GETUTCDATE())))))
How do I create a swql query that divides the first from the second query.
thanks
Matt