Typ sledování stavu virtuálního počítače nástroje System Center 1801+ Virtual Machine Manager
Microsoft.SystemCenter.VirtualMachineManager.VMStateMonitorType (UnitMonitorType)
Tento typ sledování slouží k detekci stavu virtuálního počítače.
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<UnitMonitorType ID="Microsoft.SystemCenter.VirtualMachineManager.VMStateMonitorType" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="Success" NoDetection="false"/>
<MonitorTypeState ID="Error" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IntervalSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="TimeoutSeconds" type="xsd:integer"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="PropertyValue" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="FailedValue" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="MissingValue" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="PausedValue" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="UnsupportedClusterPattern" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="NotRespondingPattern" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="IncompletePattern" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ExcludedState1" type="xsd:string"/>
<xsd:element xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="ExcludedState2" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
<OverrideableParameter ID="TimeoutSeconds" Selector="$Config/TimeoutSeconds$" ParameterType="int"/>
<OverrideableParameter ID="IncompletePattern" Selector="$Config/IncompletePattern$" ParameterType="string"/>
<OverrideableParameter ID="PausedValue" Selector="$Config/PausedValue$" ParameterType="string" Comment="To allow ignoring Paused state, use IgnorePaused to skip Paused state alerts"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="DS" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval>$Config/IntervalSeconds$</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
<ConditionDetection ID="CDOnHealthy" TypeID="System!System.ExpressionFilter">
<Expression>
<Or>
<!--Excluded States-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator CaseSensitive="false">Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/ExcludedState1$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<!--Excluded States-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator CaseSensitive="false">Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/ExcludedState2$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<And>
<!--Not Contain "Failed" string-->
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator>DoesNotContainSubstring</Operator>
<Pattern>$Config/FailedValue$</Pattern>
</RegExExpression>
</Expression>
<!--Not Equal Missing-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/MissingValue$</Value>
</ValueExpression>
<Operator CaseSensitive="false">NotEqual</Operator>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<!--Not Equal Paused-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/PausedValue$</Value>
</ValueExpression>
<Operator CaseSensitive="false">NotEqual</Operator>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<!--Does not contain Unsupported Cluster-->
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator>DoesNotContainSubstring</Operator>
<Pattern>$Config/UnsupportedClusterPattern$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator>DoesNotContainSubstring</Operator>
<Pattern>$Config/NotRespondingPattern$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator>DoesNotContainSubstring</Operator>
<Pattern>$Config/IncompletePattern$</Pattern>
</RegExExpression>
</Expression>
</And>
</Expression>
</Or>
</Expression>
</ConditionDetection>
<ConditionDetection ID="CDOnCritical" TypeID="System!System.ExpressionFilter">
<Expression>
<And>
<Expression>
<Or>
<!--Contains "Failed" string-->
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>Failed</Pattern>
</RegExExpression>
</Expression>
<!--Equal Missing-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/MissingValue$</Value>
</ValueExpression>
<Operator CaseSensitive="false">Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<!--Equal Paused-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/PausedValue$</Value>
</ValueExpression>
<Operator CaseSensitive="false">Equal</Operator>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<!--Contains Unsupported Cluster-->
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>$Config/UnsupportedClusterPattern$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>$Config/NotRespondingPattern$</Pattern>
</RegExExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator>ContainsSubstring</Operator>
<Pattern>$Config/IncompletePattern$</Pattern>
</RegExExpression>
</Expression>
</Or>
</Expression>
<!--Excluded States-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator CaseSensitive="false">NotEqual</Operator>
<ValueExpression>
<Value Type="String">$Config/ExcludedState1$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<!--Excluded States-->
<Expression>
<SimpleExpression>
<ValueExpression>
<Value Type="String">$Config/PropertyValue$</Value>
</ValueExpression>
<Operator CaseSensitive="false">NotEqual</Operator>
<ValueExpression>
<Value Type="String">$Config/ExcludedState2$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="Success">
<Node ID="CDOnHealthy">
<Node ID="DS"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="Error">
<Node ID="CDOnCritical">
<Node ID="DS"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>