Testing the example script

To send a notification using APAgent, use the following command (if you omit the “1” at the end, $event.debug will not exist, and nothing will be logged to “HelloWorld-2.log”):

APClient.bin --map-data HelloWorld HelloWorld companyadmin 2001 1

An email should be sent to the email account specified in the SMTP email account. It should contain a subject line of “Example #2” and a message body containing “Hello World!”

The “Hello World!” message should be sent to the SMTP mail recipient.  Additionally, the following should appear in the “HelloWorld-2.log” file:

2006-05-07 13:28:58,642 [processBroker.4] INFO - Processing notifications...

2006-05-07 13:29:13,190 [notificationResolutionEngine.4] INFO - Response script called with response event SUCCESSFUL_DELIVERY

2006-05-07 13:29:13,221 [notificationResolutionEngine.4] INFO - Notification was successfully delivered to recipient companyadmin