Share via

Require Data for Cluster Disk rules in SCOM.

Anish Jain 1 Reputation point
2021-02-05T07:51:59.267+00:00

Hi,

We are working on an integration for SCOM where we allow software administrators to collect data from Microsoft System Center Operations Manager (SCOM) using PowerShell scripts. We also use SCOM SDK for the same. This integration can be used by various customers using SCOM for working on analytics of data generated through SCOM.

We are looking for data related to any of the below rules:
Cluster Disk - Free space / %
Cluster Disk - Free space / MB
Cluster Disk - Total size / MB

GetMonitoringPerformanceDataReader()
GetMonitoringPerformanceData()
GetMonitoringPerformanceDataValue()

These are functions from SDK used to get performance data.

If you use SCOM SDK can you share a sample data of any of the above performance rules?

If you don't use SCOM SDK, but you have clustered setup, then can you run below commands in powershell and share the output:
$Class = Get-SCOMClass -DisplayName "Cluster Disk"
$ClassInstance = Get-SCOMClassInstance -Class $Class
$ClassInstance.GetMonitoringPerformanceData() | Select CounterName

Please select the counter name from the list for rule: Collection Rule for % Free space Windows Server Cluster Disk
and add it below after -eq,

$Data = $ClassInstance.GetMonitoringPerformanceData() | ?{$_.CounterName -eq "(paste here name of counter)"}
$SampleStartTime = (Get-Date).AddHours(-10)
$SampleEndTime = (Get-Date)
$PerformanceValues = $Data.GetValues($SampleStartTime,$SampleEndTime)
$PerformanceValues

Thanks for your help.

System Center Operations Manager
System Center Operations Manager

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.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.