web stats
Inactivity Alerts - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 01-14-2010, 04:39 AM
Bostad Bostad is offline
Level 85 Channel Wizard
 
Join Date: Mar 2009
Location: Stratford Ontario
Posts: 712
Bostad is an unknown quantity at this point
Default Inactivity Alerts

Morning Everyone;

I've just received an angry email from one of my users complaining about not getting messages from Mirth.
It turns out that the Meditech interface that sends data to Mirth failed.

I've looked and while I see that I can set an alert to let me know if I get an error, I don't see a way to have it tell me that there's no activity.

Essentially I want to have Mirth drop my team an email if there is no activity on this interface in 12 hours.

My alternative is adding a destination that updates the time in a database with every message and then write an app in .NET to poll this and act as an alarm.

Would prefer not to do that.
Reply With Quote
  #2  
Old 01-14-2010, 05:39 AM
jbartels jbartels is offline
Mirth Guru
 
Join Date: Oct 2006
Posts: 719
jbartels is on a distinguished road
Default

I don't know if there is a feature, but you don't need to use .NET to poll the DB you already have Mirth. Chew this over a bit, popped in my head before I finished my first coffee.

So you're familiar with the alert mechanism already. Have a look in the JS reference under "Logging and Alerts" there you will see "Send an Email" and "Trigger an Alert".

Heres what I'm thinking -
- Setup your timestamp logger, just do the logic in this step. "I got a message, log the timestamp"
- Grab that timestamp and write it to a file (DB would work, but seems like overkill)
- Setup another channel to poll every X hours and read the file or DB. Tune this to your needs, if you don't get overnight traffic plan for that. If its 24/7 not getting data for 15 minutes may indicate a problem.
- Parse the data from that file and compare it to current time.
- If it is newer, bail out and do nothing. If it is out of range send an email or trigger an alert. Suggest using alerts over raw email, easier to manage.

One more thing to consider is to ask your network engineers what monitoring tools they might have. Most tools should be able to have a rule setup to watch traffic from <meditech IP> to <Mirth IP> on ports <HL7 ports> and alert if there is unusually low traffic.

Please post back as you work through this and share your channel or snippets!
__________________
Jon Bartels

Zen is hiring!!!!
http://consultzen.com/careers/
Talented healthcare IT professionals wanted. Engineers to sales to management.
Good benefits, great working environment, genuinely interesting work.
Reply With Quote
  #3  
Old 01-14-2010, 05:49 AM
Bostad Bostad is offline
Level 85 Channel Wizard
 
Join Date: Mar 2009
Location: Stratford Ontario
Posts: 712
Bostad is an unknown quantity at this point
Default

That is very clever!
Let me work on it and see how it goes!
Reply With Quote
  #4  
Old 02-04-2010, 06:57 AM
Yorkie Yorkie is offline
OBX.1 Kenobi
 
Join Date: Oct 2009
Location: Milton Keynes, UK
Posts: 43
Yorkie is on a distinguished road
Default

Quote:
Originally Posted by Bostad View Post
That is very clever!
Let me work on it and see how it goes!
Hi Bostad,

Did you ever impliment this? How did you get on? Would you be willing to share the detail?
Reply With Quote
  #5  
Old 05-23-2019, 10:02 AM
anaishaawasthi anaishaawasthi is offline
What's HL7?
 
Join Date: May 2019
Posts: 3
anaishaawasthi is on a distinguished road
Default

Hi Bostad,

Did you ever impliment this? How did you get on? Would you be willing to share the detail?
Reply With Quote
Reply

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 07:45 PM.


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