Writing Monitors for the Event Monitoring Service (December 1999)

Chapter 3 59
Creating a Resource Monitor
3 Creating a Resource Monitor
A resource monitor is the expert on a particular resource instance or
resource class. A resource monitor responds to requests for information
about what resources can be monitored, provides information about each
resource, and checks the status of the resource as (asynchronously or
synchronously) requested.
A sample monitor program is supplied in the
/opt/resmon/devkit/source/sampmon directory.
A resource monitor is a C or C++ application that links with the EMS
shared library at runtime.
This chapter contains the following sections:
Implementing a Resource Monitor
Writing the Monitor
Defining the Resource Dictionary Hierarchy
Processing a Subclass Request Event
Processing a Monitor Request Event
Processing a Resource Update Event
Processing an Unregister Event
Processing a Terminate Event
Processing an Asynchronous Notification
Defining an Internal Timeout