Writing Monitors for the Event Monitoring Service (December 1999)

82 Chapter3
Creating a Resource Monitor
Processing a Subclass Request Event
Table 3-3 Subclass Reply Object Fields
Field Name Type Description
RmDescription char * A description of a resource class or
instance. The description will be text that
would help someone understand what
the resource is. This field is a string of up
to 2048 characters with a terminating
null. 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).
The default value is NULL.
RmObjectType rm_object
_type
The object type. For a Subclass Reply,
the value is
RM_SUBCLASS_REPLY_OBJECT.
This value is set by
rm_get_next_event() and should
not be modified.
RmOVSeverity rm_option
_type
Attribute of a resource. If the resource
values map or can be mapped into
RmOVSeverity or similar severities,
set to RM_OV_ENUMERATION.
Set the monitor to identify resources
whose values can be mapped to
severities:
1: Normal
2: Warning
3: Minor
4: Major
5: Critical
The default value is
RM_NOT_APPLICABLE.