UNIX/Linux Logical Disk Free Space Monitor Type

Microsoft.Unix.WSMan.LogicalDisk.FreeSpace.MonitorType (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Unix.WSMan.TimedEnumerator.Filtered Default
CDOverThreshold ConditionDetection System.ExpressionFilter Default
CDUnderErrorThreshold ConditionDetection System.ExpressionFilter Default
CDUnderWarningThreshold ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
Intervalint$Config/Interval$IntervalThe interval of monitor
SyncTimestring$Config/SyncTime$SyncTimeThe sync time of the monitor
ErrorPctThresholddouble$Config/ErrorPctThreshold$Error Percent ThresholdFree Space Percentage Threshold for error conditions
ErrorMBThresholddouble$Config/ErrorMBThreshold$Error Mbytes ThresholdFree Space Megabyte Threshold for error conditions
WarningPctThresholddouble$Config/WarningPctThreshold$Warning Percent ThresholdFree Space Percentage Threshold for warning conditions
WarningMBThresholddouble$Config/WarningMBThreshold$Warning Mbytes ThresholdFree Space Megabyte Threshold for warning conditions

Source Code:

<UnitMonitorType ID="Microsoft.Unix.WSMan.LogicalDisk.FreeSpace.MonitorType" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="UnderErrorThreshold"/>
<MonitorTypeState ID="UnderWarningThreshold"/>
<MonitorTypeState ID="OverThreshold"/>
</MonitorTypeStates>
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element name="TargetSystem" type="xsd:string"/>
<xsd:element name="Uri" type="xsd:string"/>
<xsd:element name="Filter" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="SplitItems" type="xsd:boolean" minOccurs="0" maxOccurs="1"/>
<xsd:element name="Interval" type="xsd:unsignedInt"/>
<xsd:element name="SyncTime" type="xsd:string" minOccurs="0" maxOccurs="1"/>
<xsd:element name="InstanceName" type="xsd:string"/>
<xsd:element name="ErrorPctThreshold" type="xsd:double"/>
<xsd:element name="ErrorMBThreshold" type="xsd:double"/>
<xsd:element name="WarningPctThreshold" type="xsd:double"/>
<xsd:element name="WarningMBThreshold" type="xsd:double"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Interval" ParameterType="int" Selector="$Config/Interval$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
<OverrideableParameter ID="ErrorPctThreshold" ParameterType="double" Selector="$Config/ErrorPctThreshold$"/>
<OverrideableParameter ID="ErrorMBThreshold" ParameterType="double" Selector="$Config/ErrorMBThreshold$"/>
<OverrideableParameter ID="WarningPctThreshold" ParameterType="double" Selector="$Config/WarningPctThreshold$"/>
<OverrideableParameter ID="WarningMBThreshold" ParameterType="double" Selector="$Config/WarningMBThreshold$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.Unix.WSMan.TimedEnumerator.Filtered">
<TargetSystem>$Config/TargetSystem$</TargetSystem>
<Uri>$Config/Uri$</Uri>
<Filter>$Config/Filter$</Filter>
<SplitItems>$Config/SplitItems$</SplitItems>
<Interval>$Config/Interval$</Interval>
<SyncTime>$Config/SyncTime$</SyncTime>
<InstanceName>$Config/InstanceName$</InstanceName>
<InstanceProperty>/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='Name']</InstanceProperty>
</DataSource>
<ConditionDetection ID="CDUnderErrorThreshold" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='PercentFreeSpace']</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/ErrorPctThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='FreeMegabytes']</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/ErrorMBThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CDUnderWarningThreshold" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='PercentFreeSpace']</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/ErrorPctThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='FreeMegabytes']</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/ErrorMBThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='PercentFreeSpace']</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/WarningPctThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='FreeMegabytes']</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/WarningMBThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CDOverThreshold" TypeID="System!System.ExpressionFilter">
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='PercentFreeSpace']</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/WarningPctThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">/DataItem/WsManData/*[local-name(.)='SCX_FileSystemStatisticalInformation']/*[local-name(.)='FreeMegabytes']</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/WarningMBThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="UnderErrorThreshold">
<Node ID="CDUnderErrorThreshold">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="UnderWarningThreshold">
<Node ID="CDUnderWarningThreshold">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="OverThreshold">
<Node ID="CDOverThreshold">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>