Writing Monitors for the Event Monitoring Service (December 1999)
Chapter 4 139
Testing a Resource Monitor with montest
Sample montest output
Resource Name ===> /samples/sbit32
Resource /samples/sbit32 is verified.
Description: This resource instance returns random values between 0 and 11,
inclusive.
User Data (in quotes) ===> “FORCED notification every 6 seconds”
Polling Interval
[1 - 86400 Sec.] ===> 6
Operation Type
[ FORCED, CHANGE ]
[ >, >=, <, <=, ==, != ] ===> FORCED
Monitor Request ID is 86835201 and Monitor Reply is RM_ACCEPT
Following are two Termination Conditions for this monitoring test.
The test will stop when EITHER criteria is satisfied.
Seconds elapsed ===> 37
Notifications received ===> 7
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 9
NOTIFICATION User Data : “FORCED notification every 6 seconds”
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 6
NOTIFICATION User Data : “FORCED notification every 6 seconds”
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 7
NOTIFICATION User Data : “FORCED notification every 6 seconds”
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 5
NOTIFICATION User Data : “FORCED notification every 6 seconds”
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 1
NOTIFICATION User Data : “FORCED notification every 6 seconds”
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 6
NOTIFICATION User Data : “FORCED notification every 6 seconds”
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 1
NOTIFICATION User Data : “FORCED notification every 6 seconds”
Terminating Request ID 86835201: 7 notifications received
Monitor Request ID 86835201 Unregistered
In the following example, the user specified the /samples/sbit32
resource instance. This time, the user specified a threshold value of “> 8,”
with RETURN notification. A notification was sent whenever the resource
value became greater than 8 and whenever it fell back below 8.
In this example, again, the user set a polling interval of six seconds and
specified that the test should stop after 37 seconds or after seven
notifications have been sent.
Resource Name ===> /samples/sbit32