Writing Monitors for the Event Monitoring Service (December 1999)

Chapter 3 67
Creating a Resource Monitor
Writing the Monitor
RmMonitorVendor
Name
char * A pointer to a null-terminated
string of up to 80 characters that
describes the company producing
the monitor.
This field must be set by the
resource monitor. The string
passed into rm_set() will be
copied by EMS into a buffer
allocated with malloc(3C). EMS
will call rm_destroy() to free
this space when the monitor calls
rm_monitor_stop().
RmMonitorVersion
String
char * A pointer to a null-terminated
string of up to 20 characters that is
the version number of the monitor.
This field must be set by the
resource monitor. The string
passed into rm_set() will be
copied by EMS into a buffer
allocated with malloc(3C). EMS
will call rm_destroy() to free
this space when the monitor calls
rm_monitor_stop().
RmObjectType rm_object
_type
The object type. The value is
RM_MONITOR_INFO_OBJECT.
This value is set by EMS and
should not be modified.
Table 3-2 Monitor Info Object Fields
Field Name Type Description