Announcement

Collapse
No announcement yet.

Inactivity Alerts

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

  • 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.
    I can be reached through gmail and Google Talk using davidrothbauer at gmail dot com
    http://www.linkedin.com/pub/david-rothbauer/5/923/518
    codeismydrug.wordpress.com
    hl7coders.wordpress.com

    Test all my code suggestions prior to implementation

  • #2
    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.

    Comment


    • #3
      That is very clever!
      Let me work on it and see how it goes!
      I can be reached through gmail and Google Talk using davidrothbauer at gmail dot com
      http://www.linkedin.com/pub/david-rothbauer/5/923/518
      codeismydrug.wordpress.com
      hl7coders.wordpress.com

      Test all my code suggestions prior to implementation

      Comment


      • #4
        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?

        Comment


        • #5
          Hi Bostad,

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

          Comment

          Working...
          X