HPE OneView Drive Bay Health Monitor

HewlettPackard.OneView.Storage.HewlettPackard.OneView.DriveBay.UnitMonitor (UnitMonitor)

Knowledge Base article:

Summary

This monitor rule monitors the health of HPE Drive Enclosure DriveBay. The rule executes a custom module and uses a property bag to process.

Configuration

If you disable this monitor, the health status of HPE Drive Enclosure DriveBay will become unavailable.

Element properties:

TargetHewlettPackard.OneView.Enclosure.HPDriveEnclosureDriveBay
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeHewlettPackard.OneView.DriveEnclosure.DriveBay.ResourceHealthState
RemotableTrue
AccessibilityInternal
Alert Message
HPE OneView Drive Bay State Error
HPE OneView Drive Bay is in Error State
RunAsHewlettPackard.OneView.RunAsProfile

Source Code:

<UnitMonitor ID="HewlettPackard.OneView.Storage.HewlettPackard.OneView.DriveBay.UnitMonitor" Accessibility="Internal" Enabled="true" Target="HewlettPackard.OneView.Enclosure.HPDriveEnclosureDriveBay" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="HewlettPackard.OneView.DriveEnclosure.DriveBay.ResourceHealthState" ConfirmDelivery="false" RunAs="HOL!HewlettPackard.OneView.RunAsProfile">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="HewlettPackard.OneView.Storage.HewlettPackard.OneView.DriveBay.UnitMonitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
</AlertSettings>
<OperationalStates>
<OperationalState ID="HealthSuccess" MonitorTypeStateID="HealthSuccess" HealthState="Success"/>
<OperationalState ID="HealthWarning" MonitorTypeStateID="HealthWarning" HealthState="Warning"/>
<OperationalState ID="HealthError" MonitorTypeStateID="HealthError" HealthState="Error"/>
</OperationalStates>
<Configuration>
<SessionID>$Target/Host/Host/Host/Host/Property[Type="HOL!HewlettPackard.OneView.Appliance"]/SessionID$</SessionID>
<HostAddress>$Target/Host/Host/Host/Host/Host/Property[Type="HOL!HewlettPackard.OneView.ApplianceCredential"]/HostAddress$_$Target/Host/Host/Host/Host/Property[Type="HOL!HewlettPackard.OneView.Appliance"]/APIVersion$</HostAddress>
<Component>DriveBay</Component>
<ComponentID>$Target/Property[Type="HewlettPackard.OneView.Enclosure.HPDriveEnclosureDriveBay"]/ObjectID$</ComponentID>
<EnclosureID>$Target/Host/Property[Type="HewlettPackard.OneView.Enclosure.HPDriveEnclosure"]/ObjectID$</EnclosureID>
<PeriodInSeconds>900</PeriodInSeconds>
<SyncTime/>
</Configuration>
</UnitMonitor>