Writing Monitors for the Event Monitoring Service (December 1999)
138 Chapter4
Testing a Resource Monitor with montest
Sample montest output
Sample montest output
Following are some examples of montest output from an interactive
session. These examples do not show the instructions that montest
displays before it prompts you for information.
Running montest for a Resource Class
In the following example, the user typed /samples when montest
prompted for the resource name. The /samples resource class includes
five resource instances.
Resource Name ===> /samples
Resource /samples is verified.
Description: A sample resource class
Resource Tree:
/samples : Resource Class
/samples/string : Resource Instance
/samples/sbit32 : Resource Instance
/samples/ubit32 : Resource Instance
/samples/enum : Resource Instance
/samples/float : Resource Instance
Done testing resource /samples
Running montest for a Resource Instance
In the following example, the user typed /samples/sbit32 when
montest prompted for the resource name. The /samples/sbit32
resource is a resource instance, so montest prompted for the information
it needed to make a monitor request.
In this example, the user set a polling interval of six seconds. The user
chose FORCED notification, so a notification was sent at every polling
interval. The test was set to stop after 37 seconds or after seven
notifications have been received by montest.