Announcement

Collapse
No announcement yet.

Too many alert emails when Retry > 0

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Too many alert emails when Retry > 0

    Hi guys,

    i have a question about the Alerts. I have a Channel with multiple Javascript destinations. Such destinations are configured to retry 60 times with 10 seconds timeout. I also have an alert to send an email upon errors on the destinations. My problem is, when the error happens permanently i am going to receive 60 emails with the same error before the channel finally really errors and (via a postprocessor script) gets stopped.

    Is there any way to have this alert email sent only when the destination is actually in ERROR state and not in the retry phase?

    Thx very much in advance!

  • #2
    Well one thing to note is that with Advanced Alerting, you have more options... you can use multiple escalation levels to only send an e-mail once a certain amount of time has passed and triggers (error attempts) are still happening. You can also set a "wait period" on the alert, which means that once an e-mail is sent, the alert won't spam you with any more until that period has elapsed.

    Another thing you can do is manually trigger your own event in the response transformer, based on the current state of responseStatus.
    Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

    Nicholas Rupley
    Work: 949-237-6069
    Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


    - How do I foo?
    - You just bar.

    Comment


    • #3
      Thx for the answer. Manually sending the email on the response transformer or the post-processor was an option that i wanted to avoid, since the declarative management of the alerts was more suitable for system operators.
      The Advanced Alerting feature sounds like the perfect one .... but may i ask where is that available? Sorry for my ignorance (i am currently using Mirth 3.1.1)

      Comment


      • #4
        Originally posted by grodriguez View Post
        Thx for the answer. Manually sending the email on the response transformer or the post-processor was an option that i wanted to avoid, since the declarative management of the alerts was more suitable for system operators.
        The Advanced Alerting feature sounds like the perfect one .... but may i ask where is that available? Sorry for my ignorance (i am currently using Mirth 3.1.1)
        I wasn't talking about manually sending an e-mail, I was talking about manually sending an alertable event using AlertSender. Then in your alert you can trigger on your custom event.

        The Advanced Alerting extension is for support subscribers: https://www.mirth.com/Products-and-S...tab_extensions You can contact sales for more info.
        Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

        Nicholas Rupley
        Work: 949-237-6069
        Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


        - How do I foo?
        - You just bar.

        Comment


        • #5
          Ok, thx very much again for the quick reply.

          Comment

          Working...
          X