Announcement

Collapse
No announcement yet.

Best solution to monitor Mirth Connect

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

  • Best solution to monitor Mirth Connect

    Hello everyone,

    I work in IT infrastructure for a hospital in Belgium.
    Currently, I have a new monitoring project (CA UIM).

    Our application team has been using MIRTH Connect for several years.

    Currently, MIRTH is in version 3.4.2.

    At first, I would like to retrieve information from MIRTH.

    I know we can use the CLI and the REST API (authentication problem - POST JSESSIONID)

    The CA UIM solution can monitor via CLI / REST API: https://docops.ca.com/ca-unified-inf...log-monitoring

    CA UIM can monitor via JVM / JMX : https://docops.ca.com/ca-unified-inf...ine-monitoring

    I do not have any specific knowledge in Java / JavaScript / Web REST API, I would like to know what is the best solution to monitor the channels of MIRTH.

    I would like some information on:

    List of Channels
    Channels Status
    Channels Stats : Error / Queues
    Channels : Connection State
    Server / Instance MIRTH Status

    I do not have any knowledge in the MIRTH application but we would like to add it to our monitoring tools.

    Thank you for your feedback and your answers for the best solution for monitoring.

    Best regards,

    Geoffrey.

  • #2
    https://yourmirthhost:8443/api describes the Client (REST) api. I think you can pull everything on your list from there. If you have a valid login you can also test the api calls from the web page. It will pull data in XML format.

    It's also possible for a Mirth dev to configure a channel to push all of those statistics to a server in any required format on a schedule, which you could also treat as a heartbeat if the stat collector channel stops sending.

    Comment


    • #3
      Thank you for your reply.

      I have access to the API. I need to try this with CA UIM.

      But, when i use Postman for the test, it's not possible to use Basic Authentication with GET.

      I saw that it was necessary to use POST but I do not know myself.

      Thank you.

      Comment


      • #4
        mirth connect

        in need help for mirth, i need to take data from machine and then drop it somewhere in my directory

        Comment


        • #5
          Originally posted by agermano View Post
          https://yourmirthhost:8443/api describes the Client (REST) api. I think you can pull everything on your list from there. If you have a valid login you can also test the api calls from the web page. It will pull data in XML format.

          It's also possible for a Mirth dev to configure a channel to push all of those statistics to a server in any required format on a schedule, which you could also treat as a heartbeat if the stat collector channel stops sending.
          Thank you agermano, I have acces with CLI and API.

          With API, i need to POST login / password before GET channels statistics.

          I have more informations with the API.

          Thank you very much.

          Comment


          • #6
            I use the API along with PRTG Monitoring to query statistics and errors. Works really well with many alerting options.

            Comment


            • #7
              This sounds like an integration between logmon and Mirth REST APIs.
              The documentation states that logmon can use the url_response probe to monitor. But again, probably this is not the place to ask questions about logmon. We can assist you with the functionality of the Mirth REST API, if you are having problem with any APIs as such.
              HL7v2.7 Certified Control Specialist!

              Comment


              • #8
                Hello Guys,

                Thank you for your reply.

                I will use the REST API because the information is more complete.

                I looked at the documentation on PRTG to monitor the REST APIs which is complete and I noticed that CA UIM has developed a RESTful API module at the request of the clients that was not included in the production monitors : https: / /docops.ca.com/ca-unified-infrastructure-management-probes/ga/en/probe-development-tools/restful-web-services

                Thanks for your help.

                Comment


                • #9
                  Originally posted by bdearlove View Post
                  I use the API along with PRTG Monitoring to query statistics and errors. Works really well with many alerting options.
                  Hello bdearlove,

                  How you configure in PRTG the POST method before the GET for monitor values ?

                  Thank you,
                  Last edited by mehano; 05-22-2018, 10:10 PM.

                  Comment


                  • #10
                    Originally posted by mehano View Post
                    Hello bdearlove,

                    How you configure in PRTG the POST method before the GET for monitor values ?

                    Thank you,
                    Hi mehano,

                    if you are still interested in monitoring Mirth using PRTG here are two approaches:

                    Custom Sensor which queries Mirth API and monitors system and channel stats, you can find more information how to use it here:
                    https://kb.paessler.com/en/topic/808...nect-with-prtg
                    or here: https://gitlab.com/PRTG/Sensor-Scrip...EXTGEN-Connect

                    You can also use the HTTP Push Data Advanced Sensor in PRTG to push Mirth stats directly to PRTG:
                    https://www.paessler.com/manuals/prt...dvanced_sensor

                    If you need further assistance feel free to contact me...

                    Regards,
                    Johannes

                    Comment


                    • #11
                      Using ELK (Elasticsearch Logstash Kibana) to monitor channels

                      Hey everyone,

                      I originally found this post looking for answers to monitor our mirth channels. I finally got data ingested into our elk stack. Now we can search historical data and develop trend lines to assist in troubleshooting. I find it easy to query the data and find specific points of information with ELK.

                      Also..

                      the method i used to capture the session cookie with the initial POST command was via using curl and saving the cookie to a file. Then using that same file append it to your get request using curl. I dont know if anyone will find that helpful but i banged my head on my desk for a solid two days before thinking of it.

                      Thanks gents!

                      Comment


                      • #12
                        Hi STRM678 - I was wondering if you could go into a bit more detail on how you ingested data into your elk stack to search historical data. Did you use a specific beat or connector to use ELK for this type of monitoring?

                        Thank you!

                        Originally posted by STRM678 View Post
                        Using ELK (Elasticsearch Logstash Kibana) to monitor channels

                        Hey everyone,

                        I originally found this post looking for answers to monitor our mirth channels. I finally got data ingested into our elk stack. Now we can search historical data and develop trend lines to assist in troubleshooting. I find it easy to query the data and find specific points of information with ELK.

                        Also..

                        the method i used to capture the session cookie with the initial POST command was via using curl and saving the cookie to a file. Then using that same file append it to your get request using curl. I dont know if anyone will find that helpful but i banged my head on my desk for a solid two days before thinking of it.

                        Thanks gents!

                        Comment

                        Working...
                        X