UNIX/Linux Process Status Monitor Type

Microsoft.Unix.WSMan.Process.Status.MonitorType (UnitMonitorType)

Element properties:

RunAsDefault
AccessibilityPublic
Support Monitor RecalculateFalse

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Unix.WSMan.TimedEnumerator Default
ProcessNotRunning ConditionDetection System.ExpressionFilter Default
ProcessRunning ConditionDetection System.ExpressionFilter Default

Overrideable Parameters:

IDParameterTypeSelectorDisplay NameDescription
ProcessNamestring$Config/ProcessName$Process NameThe Process Name to look for.
Intervalint$Config/Interval$IntervalInterval in seconds that the Process Status Monitor runs.
SyncTimestring$Config/SyncTime$SyncTimeTime of day the Process Status Monitor syncs at.

Source Code:

<UnitMonitorType ID="Microsoft.Unix.WSMan.Process.Status.MonitorType" Accessibility="Public">
<MonitorTypeStates>
<MonitorTypeState ID="Running"/>
<MonitorTypeState ID="NotRunning"/>
</MonitorTypeStates>
<Configuration>
<xsd:element name="TargetSystem" type="xsd:string"/>
<xsd:element name="ProcessName" type="xsd:string"/>
<xsd:element name="Interval" type="xsd:unsignedInt"/>
<xsd:element name="SyncTime" type="xsd:string" minOccurs="0" maxOccurs="1"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="ProcessName" ParameterType="string" Selector="$Config/ProcessName$"/>
<OverrideableParameter ID="Interval" ParameterType="int" Selector="$Config/Interval$"/>
<OverrideableParameter ID="SyncTime" ParameterType="string" Selector="$Config/SyncTime$"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="Microsoft.Unix.WSMan.TimedEnumerator">
<TargetSystem>$Config/TargetSystem$</TargetSystem>
<Uri>http://schemas.microsoft.com/wbem/wscim/1/cim-schema/2/SCX_UnixProcess?__cimnamespace=root/scx</Uri>
<Filter>select Name from SCX_UnixProcess</Filter>
<SplitItems>false</SplitItems>
<Interval>$Config/Interval$</Interval>
<SyncTime>$Config/SyncTime$</SyncTime>
</DataSource>
<ConditionDetection ID="ProcessRunning" TypeID="System!System.ExpressionFilter">
<Expression>
<Exists>
<ValueExpression>
<XPathQuery Type="String">//*[local-name()="Name" and text()="$Config/ProcessName$"]</XPathQuery>
</ValueExpression>
</Exists>
</Expression>
</ConditionDetection>
<ConditionDetection ID="ProcessNotRunning" TypeID="System!System.ExpressionFilter">
<Expression>
<Not>
<Expression>
<Exists>
<ValueExpression>
<XPathQuery Type="String">//*[local-name()="Name" and text()="$Config/ProcessName$"]</XPathQuery>
</ValueExpression>
</Exists>
</Expression>
</Not>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Running">
<Node ID="ProcessRunning">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="NotRunning">
<Node ID="ProcessNotRunning">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>