Physical Disk Avg.Disk sec/Read 性能计数器的收集规则

Microsoft.Linux.RHEL.5.PhysicalDisk.AverageDiskReadTime.Monitor (UnitMonitor)

Red Hat Enterprise Linux Server 5 Physical Disk Avg.Disk sec/Read 监视器

Knowledge Base article:

摘要

每次读取的平均时间(适用于物理磁盘)长。系统性能可能会受到负面影响。

每次读取的平均物理磁盘时间以秒为单位。成为瓶颈的磁盘可能会造成整个系统缓慢。

此监视器阈值是按照轮询过程中返回给代理的平均值分析的,其中“样本数”参数控制平均值计算中所包含的样本数。代理返回的值是前 5 分钟的平均值。

配置

默认情况下物理磁盘监视处于禁用状态。通过启用名为“发现 Red Hat Enterprise Linux Server 5 物理磁盘”的对象发现来启用监视。

默认配置

参数

默认值

阈值

0.05

间隔(秒)

300

样本数

5

替代可用于更改以上为所有实例或为特定实例或组定义的参数值。

原因

不正常状态表示每次读取的物理磁盘平均时间当前长。

环境可能引起此情况:

解决方法

Element properties:

TargetMicrosoft.Linux.RHEL.5.PhysicalDisk
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Average Disk Sec/Read 太高
已超过 Physical Disk\Avg. Disk Sec/Read 性能计数器的阈值。 超过了阈值的值是: {0} Sec/Read。
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Linux.RHEL.5.PhysicalDisk.AverageDiskReadTime.Monitor" Accessibility="Public" Target="Microsoft.Linux.RHEL.5.PhysicalDisk" TypeID="Unix!Microsoft.Unix.WSMan.Performance.Filtered.Average.Threshold.MonitorType" Enabled="true" ParentMonitorID="SystemHealth!System.Health.PerformanceState">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Microsoft.Linux.RHEL.5.PhysicalDisk.AverageDiskReadTime.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>Error</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/Value$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState HealthState="Success" MonitorTypeStateID="UnderThreshold" ID="UnderThreshold"/>
<OperationalState HealthState="Error" MonitorTypeStateID="OverThreshold" ID="OverThreshold"/>
</OperationalStates>
<Configuration>
<TargetSystem>$Target/Host/Property[Type="Unix!Microsoft.Unix.Computer"]/NetworkName$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_DiskDriveStatisticalInformation?__cimnamespace=root/scx</Uri>
<Filter/>
<SplitItems>true</SplitItems>
<Interval>300</Interval>
<ObjectName>Physical Disk</ObjectName>
<CounterName>Avg. Disk sec/Read</CounterName>
<InstanceName>$Target/Property[Type="Unix!Microsoft.Unix.LogicalDevice"]/DeviceID$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='SCX_DiskDriveStatisticalInformation']/*[local-name(.)='Name']</InstanceProperty>
<Value>$Data/WsManData/*[local-name(.)='SCX_DiskDriveStatisticalInformation']/*[local-name(.)='AverageReadTime']$</Value>
<Threshold>.05</Threshold>
<NumSamples>5</NumSamples>
</Configuration>
</UnitMonitor>