Corrupted Blocks

Ambari.SCOM.UnitMonitor.HdfsCorruptedBlocks (UnitMonitor)

Gives critical alert if number of corrupted blocks is more than threshold.

Knowledge Base article:

Summary

Gives critical alert if number of corrupted blocks is more than threshold.

Causes

TBD

Resolutions

TBD

Element properties:

TargetAmbari.SCOM.ClusterService.Hdfs
Parent MonitorSystem.Health.PerformanceState
CategoryPerformanceHealth
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeAmbari.SCOM.UnitMonitorType.HdfsServiceTwoStateThreshold
RemotableTrue
AccessibilityPublic
Alert Message
There are corrupted file blocks in HDFS.
There are {1} corrupted blocks in the HDFS of cluster "{0}".
RunAsDefault

Source Code:

<UnitMonitor ID="Ambari.SCOM.UnitMonitor.HdfsCorruptedBlocks" TypeID="Ambari.SCOM.UnitMonitorType.HdfsServiceTwoStateThreshold" Target="Ambari.SCOM.ClusterService.Hdfs" ParentMonitorID="Health!System.Health.PerformanceState" Remotable="true" Priority="Normal" Accessibility="Public" Enabled="true" ConfirmDelivery="true">
<Category>PerformanceHealth</Category>
<AlertSettings AlertMessage="Ambari.SCOM.UnitMonitor.HdfsCorruptedBlocks.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Property[Type="Ambari.SCOM.ClusterService.Private"]/ClusterName$</AlertParameter1>
<AlertParameter2>$Data/Context/Property[@Name='corruptblocks']$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="Healthy" MonitorTypeStateID="Healthy" HealthState="Success"/>
<OperationalState ID="Critical" MonitorTypeStateID="Critical" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
<PropertyName>corruptblocks</PropertyName>
<TheGreaterTheBetter>false</TheGreaterTheBetter>
<Threshold>1</Threshold>
</Configuration>
</UnitMonitor>