I was playing around with something like the following
If you sum and divide the uptime/totaltime columns for a specific period ( ie between getdate()-30 and getdate() )
then it could show the TOTAL % Uptime for a given group of machines
Just need to check my SQL and make sure it is accurate
Doing this means the query will return a single value (e.g. "Overall Server Uptime for Organization ABC) and can be included in a Value Names Part and therefore added to the new Executive report
Not quite the same as an Uptime per machine .. but better than nothing
SELECT TOP (100) PERCENT agentGuid, groupName, machName, eventTime, duration, type, CASE WHEN duration = - 1 THEN (CONVERT(decimal(26, 3), getdate() - eventtime)
* 24 * 60 * 60) ELSE duration END AS TotalTime, CASE WHEN type = 3 THEN 0 WHEN duration = - 1 THEN (CONVERT(decimal(26, 3), getdate() - eventtime)
* 24 * 60 * 60) ELSE duration END AS Uptime
FROM dbo.vUptimeHistory
ORDER BY eventTime DESC