This rule collects events that the Windows 7 Disk diagnostic logs when the SMART drive detects an impending failure
The hard drive is about to fail
Please back up the hard drive and replace it immediately
Target | Microsoft.Windows.Client.Win7.Aggregate.PhysicalDisk |
Category | EventCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
Event Log | System |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
EventDS | DataSource | Microsoft.Windows.EventProvider | System.PrivilegedMonitoringAccount |
Mapper | ConditionDetection | Microsoft.Windows.Client.Win7.LinkedDataMapper | Default |
PublishToDiskChannel | WriteAction | Microsoft.Windows.Client.Win7.Computer.PublishLinkedData | Default |
<Rule ID="Microsoft.Windows.Client.Win7.Computer.DFD.Collection" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.Client.Win7.Aggregate.PhysicalDisk" DiscardLevel="100" ConfirmDelivery="true" Remotable="true" Priority="Normal">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="EventDS" RunAs="System!System.PrivilegedMonitoringAccount" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<LogName>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Microsoft-Windows-DiskDiagnostic</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>1</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventData/DataItem/EventData/Data[@Name='HardwareID']/text()</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="Microsoft.Windows.Client.Win7.Aggregate.PhysicalDisk"]/PNPDeviceID$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<ConditionDetection TypeID="Microsoft.Windows.Client.Win7.LinkedDataMapper" ID="Mapper">
<ManagedEntityId>$Target/Id$</ManagedEntityId>
<RuleId>$MPElement$</RuleId>
</ConditionDetection>
<WriteActions>
<WriteAction ID="PublishToDiskChannel" TypeID="Microsoft.Windows.Client.Win7.Computer.PublishLinkedData">
<ChannelId>AD13D396-4ED3-4911-9B94-99AADA9DB51A</ChannelId>
</WriteAction>
</WriteActions>
</Rule>