Writing Monitors for the Event Monitoring Service (December 1999)
84 Chapter3
Creating a Resource Monitor
Processing a Subclass Request Event
RmStateObject rm_object
_addr
An object in the Resource State List. The
Resource State List is included only
when the RmResourceType is
RM_ENUMERATED_TYPE.
The resource monitor must create each
object in the Resource State List with
rm_create() using an object type of
RM_RESOURCE_STATE_OBJECT.
RmStateType rm_option
_type
A field that is set by the monitor. The
monitor needs to check the passed in
value and appropriately set the value in
the reply.
The possible values are RM_STATE,
RM_ASYNCHRONOUS, RM_BOTH. This
can be used for filtering. The monitor
should use this field to determine the
reply. The default is RM_STATE, for
which the monitor should return only
state resources. MC/ServiceGuard
functions with state resources only.
RmSubclass
ChildObject
rm_object
_addr
An object in the Subclass List. The
Subclass List is included only when the
RmResourceType is
RM_RESOURCE_CLASS_TYPE.
Each object in the Subclass List should
be created with rm_create() using an
object type of
RM_SUBCLASS_CHILD_OBJECT.
Table 3-3 Subclass Reply Object Fields
Field Name Type Description