Share via


OperationalStates

Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007

Contains mappings between health states and the monitor type states defined in the monitor’s unit monitor type.

Schema Hierarchy

ManagementPack
  Monitoring
    Monitors
      UnitMonitor
        OperationalStates

Syntax

<OperationalStates>
  <OperationalState ID=”OperationalStateID” Comment=”Comment” MonitorTypeStateID=”MonitorTypeStateID” HealthState=””/>
</OperationalStates>

Attributes and Elements

The following sections describe attributes, child elements, and the parent element of the OperationalStates element.

Attributes

None.

Child Elements

Element Description

OperationalState

Required element. Defines a mapping between a health state and an operational state.

Parent Elements

Element Description

UnitMonitor

Defines an implementation of a unit monitor type definition that determines the health of targeted class type instances.

Remarks

The OperationalStates element contains operational states that allow the management pack author to map health states to the monitor type states that are defined in the UnitMonitorType definition. It also allows them to provide a custom name and description of each state for the purpose of both clarity and localization.

In the following example, two monitor type states are defined in the unit monitor type definition Microsoft.Windows.2SingleEventLog2StateMonitorType.

  
<UnitMonitorType
ID="Microsoft.Windows.2SingleEventLog2StateMonitorType"
Accessibility="Public">
  <MonitorTypeStates>
    <MonitorTypeState ID="FirstEventRaised" />
    <MonitorTypeState ID="SecondEventRaised" />
  </MonitorTypeStates>
  <Configuration>
     …
  </Configuration>
  <MonitorImplementation>
     …    
  </MonitorImplementation>
</UnitMonitorType>

A unit monitor that wants to implement this monitor type must associate two health states with the two monitor type states. In the following sample, the health states Error and Success are mapped to the two monitor type states.

<UnitMonitor ID="Microsoft.Windows.Client.Vista.NetworkAdapter.NetworkAdapterConnectionHealth" Accessibility="Public" Enabled="false" Target="Vista!Microsoft.Windows.Client.Vista.NetworkAdapter" ParentMonitorID="SystemHealth!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="false">
  <Category>AvailabilityHealth</Category>

 <OperationalStates>
    <OperationalState ID="Disconnected" MonitorTypeStateID="FirstEventRaised" HealthState="Error" />
    <OperationalState ID="Connected" MonitorTypeStateID="SecondEventRaised" HealthState="Success" />
  </OperationalStates>
  <Configuration>
    …
  </Configuration>
</UnitMonitor>

For the entire unit monitor definition, see UnitMonitor. To learn how to provide localizable names and descriptions associated with an operational state, see OperationalState.

See Also

Reference

UnitMonitor