S2D do SCOM: Regra Fechar Alerta do Volume de Armazenamento

Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.Volume.CloseAlert.Rule (Rule)

Essa regra monitora os eventos de falha do Volume. Ela fecha um alerta do Operations Manager para uma falha existente no Volume quando um tipo de fechamento da falha é gerado.

Knowledge Base article:

Resumo

Essa regra monitora os eventos de falha do Volume. Ela fecha um alerta do Operations Manager para uma falha existente no Volume quando um tipo de fechamento da falha é gerado.

Element properties:

TargetMicrosoft.Windows.Server.10.0.Storage.StorageSpacesDirect.Volume
CategoryCustom
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
WmiEventProviderDS DataSource Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.FaultWmiEventDataSource Default
CloseAlert WriteAction Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.CloseAlertWriteAction System.PrivilegedMonitoringAccount

Source Code:

<Rule ID="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.Volume.CloseAlert.Rule" Enabled="true" Target="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.Volume" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Custom</Category>
<DataSources>
<DataSource ID="WmiEventProviderDS" TypeID="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.FaultWmiEventDataSource">
<TargetInstanceUniqueID>$Target/Property[Type="MicrosoftStorageLibrary!Microsoft.Storage.Library.Windows.Volume"]/UniqueID$</TargetInstanceUniqueID>
<TargetInstanceObjectID>$Target/Property[Type="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.Volume"]/ObjectId$</TargetInstanceObjectID>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<PollInterval>15</PollInterval>
<WQLQuery>Select SourceUniqueId, Reason, FaultingObjectLocation, FaultingObjectDescription, RecommendedActions, FaultId, PerceivedSeverity, SourceObjectId From MSFT_StorageFaultEvent Where SourceClassName = 'MSFT_Volume' And ChangeType = 1</WQLQuery>
<TargetId>$Target/Id$</TargetId>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="CloseAlert" TypeID="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.CloseAlertWriteAction" Target="SystemCenter!Microsoft.SystemCenter.AllManagementServersPool" RunAs="System!System.PrivilegedMonitoringAccount">
<FaultId>$Data/Property[@Name='FaultId']$</FaultId>
<SourceUniqueId>$Data/Property[@Name='SourceUniqueId']$</SourceUniqueId>
<SourceObjectId>$Data/Property[@Name='SourceObjectId']$</SourceObjectId>
<TimeoutSeconds>300</TimeoutSeconds>
<RuleId1>$MPElement[Name="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.Volume.Rule"]$</RuleId1>
<RuleId2>$MPElement[Name="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.Volume.RefreshAlert.Rule"]$</RuleId2>
<RuleId3>$MPElement[Name="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.Volume.SyncAlert.Rule"]$</RuleId3>
</WriteAction>
</WriteActions>
</Rule>