web stats
Too many alert emails when Retry > 0 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2015, 05:36 AM
grodriguez grodriguez is offline
Mirth Newb
 
Join Date: Sep 2012
Posts: 17
grodriguez is on a distinguished road
Default 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!
Reply With Quote
  #2  
Old 06-05-2015, 06:28 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 06-08-2015, 05:32 AM
grodriguez grodriguez is offline
Mirth Newb
 
Join Date: Sep 2012
Posts: 17
grodriguez is on a distinguished road
Default

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)
Reply With Quote
  #4  
Old 06-08-2015, 06:27 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,123
narupley is on a distinguished road
Default

Quote:
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.
Reply With Quote
  #5  
Old 06-08-2015, 06:31 AM
grodriguez grodriguez is offline
Mirth Newb
 
Join Date: Sep 2012
Posts: 17
grodriguez is on a distinguished road
Default

Ok, thx very much again for the quick reply.
Reply With Quote
Reply

Tags
alert, destination, email, error handling

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 02:24 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation