Writing Monitors for the Event Monitoring Service (December 1999)
140 Chapter4
Testing a Resource Monitor with montest
Sample montest output
Resource /samples/sbit32 is verified.
Description: This resource instance returns random values between 0 and 11,
inclusive.
User Data (in quotes) ===> “using greater than 8 and RETURN”
Polling Interval
[1 - 86400 Sec.] ===> 6
Operation Type
[ FORCED, CHANGE ]
[ >, >=, <, <=, ==, != ] ===> >
Type in Threshold Value ===> 8
Notification Type
[INITIAL, REPEAT, RETURN] ==> RETURN
Monitor Request ID is 86835203 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: 11
NOTIFICATION User Data : “using greater than 8 and RETURN”
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 5
NOTIFICATION User Data : “using greater than 8 and RETURN”
NOTIFICATION Resource Name : /samples/sbit32
NOTIFICATION Resource Value: 11
NOTIFICATION User Data : “using greater than 8 and RETURN”
Terminating Request ID 86835203: 37 seconds expired, 3 notifications received
Monitor Request ID 86835203 Unregistered