Hi,
I am a bit concerned and would just like some clarification,
In my lab SCOM 2007R2 i can pull data for the day before on performance from my datawarehouse but in SCOM 2012SP1 also in my lab i can only pull performance data 2 days ago with the below query, i would like to get the SCOM Agent CPU Utilization report to say (Both the settings are the same on 2007R2, 2012Sp1 for the grooming on the OperationsManagerDB) this happens on my Production SCOM 2012 SP1 enviroment as well.
This is the SQL Query i am Using to pull the data.
Use OperationsManagerDW
SELECT top (100) Perf.vPerfDaily.DateTime, dbo.vManagedEntity.Path, dbo.vPerformanceRule.CounterName,
dbo.vPerformanceRuleInstance.InstanceName, round (Perf.vPerfDaily.MaxValue,2)As [% Usage]
FROM Perf.vPerfDaily INNER JOIN
dbo.vManagedEntity ON Perf.vPerfDaily.ManagedEntityRowId = dbo.vManagedEntity.ManagedEntityRowId INNER JOIN
dbo.vPerformanceRuleInstance ON
Perf.vPerfDaily.PerformanceRuleInstanceRowId = dbo.vPerformanceRuleInstance.PerformanceRuleInstanceRowId INNER JOIN
dbo.vPerformanceRule ON dbo.vPerformanceRuleInstance.RuleRowId = dbo.vPerformanceRule.RuleRowId
WHERE (NOT (dbo.vManagedEntity.Path = N'nul')) AND (Perf.vPerfDaily.DateTime =
(SELECT MAX(DateTime) AS Expr1
FROM Perf.vPerfDaily AS vPerfDaily_1))
AND
(dbo.vPerformanceRule.CounterName LIKE N'agent processor utilization')
and Perf.vPerfDaily.MaxValue > 15
ORDER BY [% Usage] desc