Den här regeln övervakar lagringsfelhändelser för lagringsfilresursen och genererar en avisering när en ny eller uppdaterad felhändelse utlöses för lagringsvolymen som är kopplad till den här filresursen.
Den här regeln övervakar lagringsfelhändelser för lagringsfilresursen och genererar en avisering när en ny eller uppdaterad felhändelse utlöses för lagringsvolymen som är kopplad till den här filresursen.
Target | Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.FileShare |
Category | Custom |
Enabled | True |
Alert Generate | True |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
WmiEventProviderDS | DataSource | Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.FaultWmiEventDataSource | Default |
GenerateAlert | WriteAction | System.Health.GenerateAlert | Default |
<Rule ID="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.FileShare.Rule" Enabled="true" Target="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.FileShare" 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.FileShare"]/UniqueID$</TargetInstanceUniqueID>
<TargetInstanceObjectID>$Target/Property[Type="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.FileShare"]/ObjectId$</TargetInstanceObjectID>
<ComputerName>$Target/Host/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_FileShare' And (ChangeType = 0 Or ChangeType = 2)</WQLQuery>
<TargetId>$Target/Id$</TargetId>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>2</Priority>
<Severity>$Data/Property[@Name='OM Alert Severity']$</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.Server.10.0.Storage.StorageSpacesDirect.FileShare.Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>$Data/Property[@Name='SourceUniqueId']$</AlertParameter1>
<AlertParameter2>$Data/Property[@Name='Reason']$</AlertParameter2>
<AlertParameter3>$Data/Property[@Name='FaultingObjectDescription']$</AlertParameter3>
<AlertParameter4>$Data/Property[@Name='RecommendedActions']$</AlertParameter4>
<AlertParameter5>$Data/Property[@Name='FaultingObjectLocation']$</AlertParameter5>
<AlertParameter6>$Data/Property[@Name='SourceObjectId']$</AlertParameter6>
<AlertParameter7/>
<AlertParameter8/>
<AlertParameter9/>
<AlertParameter10/>
</AlertParameters>
<Suppression>
<SuppressionValue>$Data/Property[@Name='FaultId']$</SuppressionValue>
</Suppression>
<Custom1>fault</Custom1>
<Custom2>$Data/Property[@Name='FaultId']$</Custom2>
</WriteAction>
</WriteActions>
</Rule>