Writing Monitors for the Event Monitoring Service (December 1999)
158 Chapter5
Writing a Target Application
Processing a Restart Notification Object
Processing a Restart Notification Object
A Restart Notification object identifies resourcesthat were affected by an
outage of a resource monitor. This occurs when a resource monitor
process unexpectedly dies, or when a system that is being monitored is
rebooted. A target may want to know when a resource monitor has been
restarted, since the resource value for one of the resources being
monitored could have been at a critical level while the resource monitor
was down.
The Restart Notification object is similar to a Subclass Reply object.
Included in the Restart Notification object is a list of objects that contain
the names of the resources that are affected by the resource monitor
restart.
Table 5-3 Restart Notification Object Fields
Field Name Type Description
RmFirst
ResourceEntry
rm_object
_addr
The first object in the Resource List. If
the Resource List is empty, rm_get()
returns NULL.
Note that subsequent calls using
RmFirstResourceEntry will return
the first object in the list. To step through
the list, use RmFirstResourceEntry,
then RmNextResourceEntry until all
of the objects have been returned.
RmMonitor
Command
char * A pointer to a single null-terminated
string that is the command line that was
used to invoke the monitor.