Writing Monitors for the Event Monitoring Service (December 1999)
50 Chapter2
The EMS Application Programming Interface (API)
Function Descriptions
rm_perror
Used by resource monitors to print an error message to an EMS log file.
Resource monitors log messages to /etc/opt/resmon/log/api.log.
Function Prototype
void rm_perror ( const char *user_string,
rm_error_type error_code );
Parameters
error_code
The error that occurred from a previously-called EMS API
function.
user_string
A user-defined error string. This string will be prepended
to the formatted error message before it is logged. An empty string or
NULL may be used if the application simply wants to log the EMS error
message.
Returned Value
None.
Usage Notes
The message will be logged with a logging level of RM_ERROR_LVL. See the
section, “Logging and Tracing” for more details.