Монитор состояния ресурсов

Microsoft.Windows.Cluster.Resource.StateMonitoring (UnitMonitor)

Реализация монитора ресурса локальным узлом кластера.

Knowledge Base article:

Краткое описание

Этот монитор проверяет состояние ресурса кластера, известное локальному узлу кластера.

Состояние

Состояние Operations Manager

ClusterResourceInherited

Выполнено

ClusterResourceOnline

Выполнено

ClusterResourceInitializing

Предупреждение

ClusterResourcePending

Предупреждение

ClusterResourceOnlinePending

Предупреждение

ClusterResourceOflinePending

Предупреждение

ClusterResourceStateUnknown

Ошибка

ClusterResourceOffline

Ошибка

ClusterResourceFailed

Ошибка

Причины

Неработоспособное состояние данного монитора указывает на то, что ресурс кластера не находится в оперативном режиме. Это может происходить по нескольким причинам, в том числе:

Отобразить свойства ресурсов

Отобразить зависимости ресурсов

Решения

Можно также попытаться перевести ресурс кластера в оперативный режим, используя следующую ссылку:

Перевести ресурс в оперативный режим

Element properties:

TargetMicrosoft.Windows.Cluster.Resource
Parent MonitorSystem.Health.AvailabilityState
CategoryAvailabilityHealth
EnabledTrue
Alert GenerateFalse
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.Cluster.CheckStatePoll
RemotableTrue
AccessibilityPublic
RunAsDefault

Source Code:

<UnitMonitor ID="Microsoft.Windows.Cluster.Resource.StateMonitoring" Accessibility="Public" Enabled="onEssentialMonitoring" Target="ClusLibrary!Microsoft.Windows.Cluster.Resource" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="ClusLibrary!Microsoft.Windows.Cluster.CheckStatePoll" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<OperationalStates>
<OperationalState ID="Success" MonitorTypeStateID="Online" HealthState="Success"/>
<OperationalState ID="Warning" MonitorTypeStateID="Partial" HealthState="Warning"/>
<OperationalState ID="Error" MonitorTypeStateID="NotOnline" HealthState="Error"/>
</OperationalStates>
<Configuration>
<ClusterObjectName>$Target/Property[Type='ClusLibrary!Microsoft.Windows.Cluster.Resource']/EscapedResourceName$</ClusterObjectName>
<PollInterval>300</PollInterval>
<SyncTime>12:10</SyncTime>
<ClusterObjectClass>MSCLUSTER_Resource</ClusterObjectClass>
<OnlineExpression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(0|2)$</Pattern>
</RegExExpression>
</OnlineExpression>
<OnlineExpressionOnDemand>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(0|2)$</Pattern>
</RegExExpression>
</OnlineExpressionOnDemand>
<PartialExpression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(1|128|129|130)$</Pattern>
</RegExExpression>
</PartialExpression>
<PartialExpressionOnDemand>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(1|128|129|130)$</Pattern>
</RegExExpression>
</PartialExpressionOnDemand>
<NotOnlineExpression>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(-1|3|4)$</Pattern>
</RegExExpression>
</NotOnlineExpression>
<NotOnlineExpressionOnDemand>
<RegExExpression>
<ValueExpression>
<XPathQuery Type="String">Property[@Name='State']</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(-1|3|4)$</Pattern>
</RegExExpression>
</NotOnlineExpressionOnDemand>
<WMIFields>Name, State</WMIFields>
</Configuration>
</UnitMonitor>