A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
Hi,
To achieve our goal, we may try the following query.
SELECT bme.Path as ServerName, ps.PerfmonInstanceName as DriveLetter, ROUND(pdav.SampleValue,0) as FreeSpace, pdav.TimeSampled as DateTime, r.RuleName
FROM PerformanceDataAllView (NOLOCK) AS pdav
INNER JOIN PerformanceSource (NOLOCK) ps ON pdav.PerformanceSourceInternalId = ps.PerformanceSourceInternalId
INNER JOIN Rules (NOLOCK) r ON ps.RuleId = r.RuleId
INNER JOIN BaseManagedEntity (NOLOCK) bme ON ps.BaseManagedEntityID = bme.BaseManagedEntityID
WHERE r.RuleName like 'Microsoft.Windows.Server.%%.LogicalDisk.FreeSpace.Collection' and ps.PerfmonInstanceName <> 'C:'
AND pdav.TimeSampled = (SELECT MAX(TimeSampled) FROM PerformanceDataAllView WHERE PerformanceSourceInternalId = pdav.PerformanceSourceInternalId )
--AND SampleValue < 20 /* To list drive having less than 20 percentage */
--and bme.Path ='Server Name' /* add FQDN for specific server */
ORDER BY path,PerfmonInstanceName
Hope the above information helps.
Alex Zhu
If the response is helpful, please click "Accept Answer" and upvote it.