Тип монитора "Подключения монитора Active Directory"
AD_Monitor_Connections.Monitortype (UnitMonitorType)
Element properties:
Member Modules:
Overrideable Parameters:
Source Code:
<UnitMonitorType ID="AD_Monitor_Connections.Monitortype" Accessibility="Internal">
<MonitorTypeStates>
<MonitorTypeState ID="ConnectionsOK" NoDetection="false"/>
<MonitorTypeState ID="ConnectionsWarn" NoDetection="false"/>
<MonitorTypeState ID="ConnectionsError" NoDetection="false"/>
</MonitorTypeStates>
<Configuration>
<xsd:element name="IntervalSeconds" type="xsd:int"/>
<xsd:element name="State" type="xsd:string"/>
</Configuration>
<OverrideableParameters>
<OverrideableParameter ID="IntervalSeconds" Selector="$Config/IntervalSeconds$" ParameterType="int"/>
</OverrideableParameters>
<MonitorImplementation>
<MemberModules>
<DataSource ID="Scheduler" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Seconds">$Config/IntervalSeconds$</Interval>
</SimpleReccuringSchedule>
<ExcludeDates/>
</Scheduler>
</DataSource>
<ConditionDetection ID="FilterSuccess" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<Value>$Config/State$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Green</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterWarn" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<Value>$Config/State$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Yellow</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
<ConditionDetection ID="FilterError" TypeID="System!System.ExpressionFilter">
<Expression>
<SimpleExpression>
<ValueExpression>
<Value>$Config/State$</Value>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>Red</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</ConditionDetection>
</MemberModules>
<RegularDetections>
<RegularDetection MonitorTypeStateID="ConnectionsOK">
<Node ID="FilterSuccess">
<Node ID="Scheduler"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="ConnectionsWarn">
<Node ID="FilterWarn">
<Node ID="Scheduler"/>
</Node>
</RegularDetection>
<RegularDetection MonitorTypeStateID="ConnectionsError">
<Node ID="FilterError">
<Node ID="Scheduler"/>
</Node>
</RegularDetection>
</RegularDetections>
</MonitorImplementation>
</UnitMonitorType>