For example, using EMS msghma MA send message to a topic:
1). Copy msghmaEmsSample1.hma and msghmaEmsSample1.xml to the plugin folder so that the hawkagent can load it when starting.
2). Edit the msghmaEmsSample1.xml file. Specify the correct "ems_url" and "ems_uid". //ems_uid is ems user name. you may add ems_pw if ems password is required..
3). Edit msghmaEmsSample1.hma. Give the correct path of msghmaEmsSample1.xml.
4). Restart the hawkagent. The methods can be seen in hawkdisplay/webconsole.
So does the RV msghma. The only difference is specifying the corresponding RV parameters in msghmaRvSample1.xml.
Send message to a queue:
This microagent does not support sending messages to queues directly, however there is an EMS feature which bridges topics and queues.
Here is the example, assuming you created bridge like this:
create bridge source=topic:mytop target=queue:myqueue
addprop topic mytop trace
addprop queue myqueue trace
Please see EMS documentation for more details.