Writing Monitors for the Event Monitoring Service (December 1999)

Chapter 3 75
Creating a Resource Monitor
Defining the Resource Dictionary Hierarchy
Figure 3-1 State and Asynchronous Resource Class Example
Resource Dictionary Examples
This section provides samples of resource dictionaries.
The following is the resource dictionary entry for a Disk Monitor,
diskmond. This resource dictionary contains the minimum resource
dictionary information.
RESOURCE_NAME: /vg
MONITOR: /etc/opt/resmon/lbin/diskmond -l
STATE_TYPE: S
The resource dictionary, diskmond.dict, contains only one level because
the subclasses and resource instances beneath the top level are dynamic.
All resources under the /vg are controlled by the diskmond resource
monitor. In this case the resource monitor has been written to supply the
rest of the hierarchy when it receives Subclass Requests. In this
example, the -l option is included in the MONITOR field defined command
line.
The following are some entries from the MIB Monitor resource
dictionary. This resource dictionary references several resource monitors.
# The LAN status, derived from MIB II
RESOURCE_NAME: /net/interfaces/lan/status
MONITOR: /etc/opt/resmon/lbin/lanmond
STATE: S
# Job queue from the HP-UX MIB
RESOURCE_NAME: /system/jobQueue1Min
MONITOR: /etc/opt/resmon/lbin/mibmond
STATE: S