Writing Monitors for the Event Monitoring Service (December 1999)
76 Chapter3
Creating a Resource Monitor
Deļ¬ning the Resource Dictionary Hierarchy
# Job queue from the HP-UX MIB
RESOURCE_NAME: /system/jobQueue5Min
MONITOR: /etc/opt/resmon/lbin/mibmond
STATE: S
# Job queue from the HP-UX MIB
RESOURCE_NAME: /system/jobQueue15Min
MONITOR: /etc/opt/resmon/lbin/mibmond
STATE: S
# Number of users from the HP-UX MIB
RESOURCE_NAME: /system/numUsers
MONITOR: /etc/opt/resmon/lbin/mibmond
STATE: S
# Define a container for the filesystem resources
RESOURCE_NAME: /system/filesystem
DESCRIPTION: "Filesystem Resources"
STATE: S
# The filesystem free space, derived from the HP-UX MIB
RESOURCE_NAME: /system/filesystem/availMb
MONITOR: /etc/opt/resmon/lbin/fsmond
STATE: S
In this sample the resource dictionary for the MIB Monitor refers to
three resource monitors and several resource classes.