Skip to Content
author's profile photo Former Member
Former Member

Alert Rule is not sending Alert Emails PI7.3

HI Gurus,

I have created Alert Category in ALRTCATDEF and also created Alert Rule wide open (All * values) but I am not able to get any alerts. I am receiving alerts when I check them from program RSALERTTEST but not receiving error when my communication channel fails due to wrong directory name.

We are on 7.31 SP07 and working on a POC to create Alerts.

Also let me know where can we check for Central Alert Server? I am assuming if test from RSALERTTEST is working then Central Alert Server connection is working as I have used NONE for RFC destination.

I am new to SAP PI and your help will be greatly appreciated.

Satyen Ameria

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 03, 2014 at 08:26 PM

    PI Gurus,

    I have gone through document and created required configuration and job. As per blog following fields need to be set up for Java mail client service:-

    - mail.from

    - mail.smtp.host

    - mail.smtp.password

    - mail.smtp.user


    Usually from ABAP stack while configuring SCOT, we don't need to provide any user ID and password information. My questions are as follows:-


    1. Do we really need to configure mail.smtp.user and mail.smtp.password information?

    2. What value should be maintained in Mail.from?

    3. Where can I check whether current java mail client service configuration is working or not (Similar to Test Email from SCOT)

    4. Where can I see these outgoing mail? (Like I can see outgoing mail in SOST)

    5. Where can I see Alert Messages in SAP PI 7.31 CBMA as previously we used to see them in Alert Inbox?


    Also when I sent a test message from Monitoring Home (Failed for receiver determination), it was picked by ABAP stack configuration (I saw mail in SCOT) but it wasn't picked up AlertConsumerJob. As per blog, alert messages on java stack are consumed by java mail client service. Is Integration Engine failure is not java stack alert?

    Also do we need to configure Alert Job in Java stack and ABAP stack both to capture failures in ABAP stack and Java Stacks?

    Please help!.

    Satyen...

    Add a comment
    10|10000 characters needed characters exceeded

    • 1. Do we really need to configure mail.smtp.user and mail.smtp.password information?

      -> yes it it mandatory

      2. What value should be maintained in Mail.from?

      -> you can give any mail ID from which you want to receive the alerts.

      3. Where can I check whether current java mail client service configuration is working or not (Similar to Test Email from SCOT)

      ->AFAIK, there is no way. If you dont configure the valid details then you should find some errors in the alertjob log details.

      4. Where can I see these outgoing mail? (Like I can see outgoing mail in SOST)

      ->AFAIK, there is no such option. If your job executed successfully. then you should receive it immediately.

      5. Where can I see Alert Messages in SAP PI 7.31 CBMA as previously we used to see them in Alert Inbox?

      ->you have a service "AlertRetrieveAPI". using wsnavigator you can query and fetch the alert information.

  • Posted on Dec 27, 2013 at 06:50 AM

    Hi,

    check below links if it helps you.

    if you have selected suppress multiple alerts in alert rule check below one.

    let us know still if it is not working.

    Regards,

    Muniyappan.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2013 at 06:28 AM

    Hi Satyendra

    Please check the following

    1. Use transaction SLART1 and see if contains the RFC destination or not. If not then create the RFC destination and assign it.

    2. Make sure that the rule is active in RWB. Please check the active option in RWB.

    3. Check the table SXMSALERTRULES using SE16 and make sure the rule is there in the table.

    4. Execute program SXMSALERT_LOGREADER in SE38 and see the rule is triggered or not.It will also shows any error if it has.

    5. If you have check the option suppress multiple alerts, then you need to go to alert inbox and read all the alert message exists there.Once you do that the new alerts will go to your alert inbox.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2013 at 06:50 AM

    Hi Satyendra,

    Please refer the below

    http://scn.sap.com/message/14137335#14137335

    Hope this helps,
    Sathya

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2013 at 03:07 PM

    Hi Satya,

    Make below changes to your alert rule

    1. Make "Nor Relevant" for Connected to message

    2. Uncheck Suppress multiple alerts of this rule.

    Now check for alert in report RSALERTTEST

    Regards,

    Pranav

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 30, 2013 at 08:29 PM

    PI Gurus,

    I have followed process of configuring CBMA on AS ABAP.


    I have followed process for Component Based Message Alerting On As Abap with creation of rule / scenario as follows:-


    1. Set up MONITOR Entries in SXMB_ADMIN:-


    ALERTING_IS_ACTIVE is set as 1.

    ALERTING_TARGET is set as 1.


    2. Configured Alert Rule in IB, Setting up Distribution List, creating Job for sending mail and error generation in CC as per screen shots.


    CC error is for FTP communication where I have provided incorrect directory name.

    .





    Now I go to SOST and I am not able to see any alert message. Am I missing anything which is required for Alert Messaging to work?


    Your help will be greatly appreciated.


    Thanks,

    Satyen...


    Alert Rule.jpg (96.5 kB)
    ALert Rule RWB.jpg (140.4 kB)
    SM37 Job.jpg (197.7 kB)
    CC Error.jpg (323.8 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 07, 2014 at 06:10 PM

    PI Gurus,

    As of now, how I understand it as follows:-

    In PI 7.31 IE failures are captured in ABAP stack and require setting in AS ABAP to capture alerts.

    AE failures are captured in Java stack and require setting in AS Java to capture alerts.

    We have been able to set them up and receive our alert messages. Only issue is as follows:-


    When we send alerts for IE failures, we are able to send mail to external email ID (Non-organization ID). but when we send mail for AE failures,mails are only sent to Organization ID. We are not able to send mails to Non-organization ID. Is there any setting which is required for us to send mail to Non Organization ID?


    Please let me know.

    Satyen...

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Satya -

      In PI 7.31 IE failures are captured in ABAP stack and require setting in AS ABAP to capture alerts.

      AE failures are captured in Java stack and require setting in AS Java to capture alerts.

      This is perfect

      Reg your second question - AFAIK, There is no such setting that allows you to process to external ID's.

      I came across below faq on java mail API. Please read it once.

      Q: When I try to send a message, why do I get javax.mail.SendFailedException: 550 Unable to relay for my-address?

      A: This is not a JavaMail problem. This is an error reply from your SMTP mail server. It indicates that your mail server is not configured to allow you to send mail through it. Typically, mail servers for an organization will be configured to allow mail from within the organization to be sent to other addresses within the organization, or to addresses external to the organization. It will also typically allow mail coming from an address external to an organization to be sent to addresses within the orgnaization. What it will typically not allow is mail coming from an address external to the organization to be sent (relayed) to another address also external to the organization. The configuration of the mail server determines whether such relaying is allowed, and which addresses are considered internal vs. external. Often mail servers will require you to authenticate before they will relay messages.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.