Unix.Authoring.ShellScript.MatchesRegExp.TwoState.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

Overrideable Parameters:

IDParameterTypeSelector
Intervalint$Config/Interval$
Timeoutint$Config/Timeout$
ScriptArgumentsstring$Config/ScriptArguments$
ErrorRegExpstring$Config/ErrorRegExp$

Source Code:

<UnitMonitorType ID="Unix.Authoring.ShellScript.MatchesRegExp.TwoState.MonitorType" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="StatusOK" 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="ErrorRegExp" type="xsd:string" 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="ErrorRegExp" Selector="$Config/ErrorRegExp$" ParameterType="string"/>
</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>
<RegExExpression>
<ValueExpression>
<XPathQuery>//*[local-name()="StdOut"]</XPathQuery>
</ValueExpression>
<Operator>DoesNotMatchRegularExpression</Operator>
<Pattern>$Config/ErrorRegExp$</Pattern>
</RegExExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CDStatusError" TypeID="System!System.ExpressionFilter">
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>//*[local-name()="StdOut"]</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>$Config/ErrorRegExp$</Pattern>
</RegExExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="StatusOK">
<Node ID="CDStatusOK">
<Node ID="InvokeDS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="StatusError">
<Node ID="CDStatusError">
<Node ID="InvokeDS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>