Writing Monitors for the Event Monitoring Service (December 1999)

108 Chapter3
Creating a Resource Monitor
Processing a Resource Update Event
Set RmClientCfgFile if appropriate.
Call rm_notify() to provide the value back to EMS.
Let the EMS API decide whether to send a notification message.
Resource Update Objects
When a Resource Update Event occurs, rm_get_next_event() creates a
Resource Update object that the resource monitor should use to set the
current value of the resource. The following fields of the Resource Update
object are defined. The resource monitor should examine the
RmResourceName field of the object returned by rm_get_next_event() to
determine what resource value is being requested. Table 3-7 lists the
Resource Update object fields.
Table 3-7 Resource Update Object Fields
Field Name Type Description
RmClientCfgFile char * Used by monitors that may use a
specific configuration file to qualify
the event.
Allowed up to maximum path length.
Event will be sent only if monitor
request with matching client cfg file
exists.