Unix.Authoring.ShellScript.LessThanThreshold.ThreeState.MonitorType (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
InvokeDS DataSource Unix.Authoring.TimedShellScript.DataSource Default
CDStatusError ConditionDetection System.ExpressionFilter Default
CDStatusOK ConditionDetection System.ExpressionFilter Default
CDStatusWarning ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelector
Intervalint$Config/Interval$
Timeoutint$Config/Timeout$
ScriptArgumentsstring$Config/ScriptArguments$
WarningThresholddouble$Config/WarningThreshold$
ErrorThresholddouble$Config/ErrorThreshold$

Source Code:

<UnitMonitorType ID="Unix.Authoring.ShellScript.LessThanThreshold.ThreeState.MonitorType" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="StatusOK" NoDetection="false"/>
<MonitorTypeState ID="StatusWarning" NoDetection="false"/>
<MonitorTypeState ID="StatusError" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<IncludeSchemaTypes>
<SchemaType>System!System.ExpressionEvaluatorSchema</SchemaType>
</IncludeSchemaTypes>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Interval" type="xsd:unsignedInt" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TargetSystem" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ShellScript" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ScriptArguments" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Timeout" type="xsd:unsignedInt" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="UserName" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="Password" type="xsd:string" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="FilterExpression" type="ExpressionType" maxOccurs="1" minOccurs="0"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="WarningThreshold" type="xsd:double" minOccurs="1"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ErrorThreshold" type="xsd:double" minOccurs="1"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="Interval" Selector="$Config/Interval$" ParameterType="int"/>
<OverrideableParameter ID="Timeout" Selector="$Config/Timeout$" ParameterType="int"/>
<OverrideableParameter ID="ScriptArguments" Selector="$Config/ScriptArguments$" ParameterType="string"/>
<OverrideableParameter ID="WarningThreshold" Selector="$Config/WarningThreshold$" ParameterType="double"/>
<OverrideableParameter ID="ErrorThreshold" Selector="$Config/ErrorThreshold$" ParameterType="double"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="InvokeDS" TypeID="Unix.Authoring.TimedShellScript.DataSource">
<Interval>$Config/Interval$</Interval>
<TargetSystem>$Config/TargetSystem$</TargetSystem>
<ShellScript>$Config/ShellScript$</ShellScript>
<ScriptArguments>$Config/ScriptArguments$</ScriptArguments>
<Timeout>$Config/Timeout$</Timeout>
<UserName>$Config/UserName$</UserName>
<Password>$Config/Password$</Password>
<FilterExpression>$Config/FilterExpression$</FilterExpression>
</DataSource>
<ConditionDetection ID="CDStatusOK" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">//*[local-name()="StdOut"]</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/WarningThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CDStatusError" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">//*[local-name()="StdOut"]</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/ErrorThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CDStatusWarning" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">//*[local-name()="StdOut"]</XPathQuery>
</ValueExpression>
<Operator>Less</Operator>
<ValueExpression>
<Value Type="Double">$Config/WarningThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="Double">//*[local-name()="StdOut"]</XPathQuery>
</ValueExpression>
<Operator>GreaterEqual</Operator>
<ValueExpression>
<Value Type="Double">$Config/ErrorThreshold$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="StatusOK">
<Node ID="CDStatusOK">
<Node ID="InvokeDS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="StatusWarning">
<Node ID="CDStatusWarning">
<Node ID="InvokeDS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="StatusError">
<Node ID="CDStatusError">
<Node ID="InvokeDS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>