I want to know can we send notification from Oracle Business Transaction Management ? If yes then how can I send notification to the administrator say admin@<host_name>.com from BTM on any alerts(SLA or condition alert) I have configured email server hostname and the sender address in BTM console but how can I configure email notification on alerts from BTM console?
The alerts generated from the BTM console are of event type "Application Performance Management KPI Alert".
To send notifications for these, use the Enterprise Manager notification features (outside of the BTM console).
High level steps are:
1) Specify SMTP gateway settings
2) Create incident rule sets. As part of this process, you will create an event rule where you choose the event type "Application Performance Management KPI Alert". Also as part of this rule, you will specify the recipients of your email notifications. You can either specify direct email addresses and/or names of EM users. If you specify EM users, make sure that user has specified his/her email preferences and optionally a notification schedule. By default we create a 24x7 notification schedule for the user once he has specified his email address.
Details of the above are documented in the Enterprise Manager doc available on OTN.
Specifically, refer to the Notifications chapter of the EM 12c Administrtor's guide:
I've checked with the BTM team. It sounds like you may be using BTM standalone (not integrated with Enterprise Manager) e.g. older version of BTM prior to 22.214.171.124? If so, you can use the email notifications in BTM. The manual describes how to setup the BTM Notifier Service to send emails, and after that you need to subscribe to BTM SLA and Condition alerts for which you want emails to be sent.
The online help and manual describes how to do this email setup.... have you checked them?
Here is the link to setting up email in BTM from BTM online help 126.96.36.199:
I am using BTM 188.8.131.52 and followed the document BTM online help e37014 document for reference. I set-up email server in BTM host. I used the command document provided in the document otself for subscribing condition alert.
First set the JAVA_HOME as export JAVA_HOME=<java_location>/jre
Then from the /BTM_Servers_184.108.40.206.0/tools diractory location executed the following command
*./btmcli.sh sendToNotifier -i <command_document_name>.xml -s http://<host>:<port>/btmcentral/sphere -l weblogic:welcome1* and it gave me the following error message
*"The prefix "ap" for element "ap:registerSubscription" is not bound."*
com.amberpoint.util.soa.types.SOAException: An unexpected exception occurred in the service at notifier while Agent service exception. The underlying exception is org.w3c.dom.DOMException: The prefix "ap" for element "ap:registerSubscription" is not bound.. Please report this error to Oracle.
Is this not possible in BTM 220.127.116.11. Can't BTM 18.104.22.168 standalone be used for sending email notifications?
I checked with the BTM team. Here is the response I received:
The problem with your XML is that it is not complete. Unfortunately, the snippet of XML that you copied from the documentation does not include the necessary namespaces that it should. If you went down a bit further in the documentation you would have found a more complete example.
Can you please confirm is this the required conformation message?
Also when I set-up the EMAIL notification in my BTM console I followed the following steps which were mentioned in the BTM online help document from Oracle (e37014)
1. Select System Services from the Navigator and select AP_Notifier_Service from the services listed in the summary area.
2. Edit its setup data (from the Admin menu) to specify the mail host and the email sender to be used.
I entered the smtp server host and the sender email address but here my query is don't we need to provide the port for the smtp mail server
I provided the following details: Mail Host: IP address of the mail server
Email Sender: Mail Address of the sender
Do we need to provide some more information( ports etc) to get email notification working?
One more thing which I want to ask is when I create subscribtion once with sendToNotifier command is it forever?? This means whenever a condition alert will be produced the subscribed email Id will get a notification?
Now I have query that suppose if I want to generate notifications only for a specific transaction. Is is possible? If yes, then can you please explain how can I avhieve this? I have written one command document but this is not working
You should talk to your network people about the host name problem. They should be able to figure out what is wrong.
If you open an SR with Oracle Support I can dive deeper into your current problem and work through your exact requirements. Here is the subscription I used when I last setup a transaction alert. I have not tested it for a while.
<ap:subscription enabled="true" name="SLA Alerts on My Txn" userID="johnSmith"
<ap:sendEmail format="long" style="html">
<!-- subcribe to WARNING and FAILURE alerts -->
<!-- subcribe to tx by friendly name-->