Drive Hosting Log Files Available Disk Space Data Collection

Microsoft.Windows.Server.LDS.Service.DatabaseAndLogSize.LogFreeSpacePerformanceCollection (Rule)

This rule collects data regarding the amount disk space that is available on a drive that hosts the log files for an AD LDS instance.

Element properties:

TargetMicrosoft.Windows.Server.LDS.Service
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableFalse

Member Modules:

ID Module Type TypeId RunAs 
ScriptDS DataSource Microsoft.Windows.Server.LDS.Service.DatabaseAndLogSize.PerfDataSource Default
FilterPerf ConditionDetection Microsoft.Windows.Server.LDS.PerfFilterMapper Default
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.Server.LDS.Service.DatabaseAndLogSize.LogFreeSpacePerformanceCollection" Enabled="true" Target="LDS!Microsoft.Windows.Server.LDS.Service" ConfirmDelivery="false" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="ScriptDS" TypeID="Microsoft.Windows.Server.LDS.Service.DatabaseAndLogSize.PerfDataSource">
<IntervalSeconds>900</IntervalSeconds>
<TimeoutSeconds>120</TimeoutSeconds>
<DatabaseFile>$Target/Property[Type="LDS!Microsoft.Windows.Server.LDS.Service"]/DatabaseFile$</DatabaseFile>
<DatabaseLogPath>$Target/Property[Type="LDS!Microsoft.Windows.Server.LDS.Service"]/DatabaseLogPath$</DatabaseLogPath>
<LogSuccessEvent>false</LogSuccessEvent>
</DataSource>
</DataSources>
<ConditionDetection ID="FilterPerf" TypeID="LDS!Microsoft.Windows.Server.LDS.PerfFilterMapper">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">CounterName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Log Drive Free Space</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<ObjectName>$Data/ObjectName$</ObjectName>
<CounterName>$Data/CounterName$</CounterName>
<InstanceName>$Data/InstanceName$</InstanceName>
<Value>$Data/Value$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>