Writing Monitors for the Event Monitoring Service (December 1999)

66 Chapter3
Creating a Resource Monitor
Writing the Monitor
RmMonitor
Description
char * A pointer to a null-terminated
string of up to 2048 characters that
gives a detailed description of the
types of resources supported by the
resource monitor. For readability,
newline characters should be
included to limit each line to 72
characters or less. Do not include
tabs in this string.
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().
RmMonitorPID pid_t The process ID of the resource
monitor.
This field is set by EMS and
should not be modified.
RmMonitorTitle char * A pointer to a null-terminated
string of up to 80 characters that is
the title of the resource 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().
Table 3-2 Monitor Info Object Fields
Field Name Type Description