web stats
Best solution to monitor Mirth Connect - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2018, 11:48 AM
mehano mehano is offline
What's HL7?
 
Join Date: May 2018
Posts: 5
mehano is on a distinguished road
Default 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.
Reply With Quote
  #2  
Old 05-11-2018, 03:02 PM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 435
agermano is on a distinguished road
Default

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.
Reply With Quote
  #3  
Old 05-14-2018, 01:37 AM
mehano mehano is offline
What's HL7?
 
Join Date: May 2018
Posts: 5
mehano is on a distinguished road
Default

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.
Reply With Quote
  #4  
Old 05-16-2018, 10:10 PM
Saman Saman is offline
What's HL7?
 
Join Date: May 2018
Posts: 1
Saman is on a distinguished road
Default mirth connect

in need help for mirth, i need to take data from machine and then drop it somewhere in my directory
Reply With Quote
  #5  
Old 05-17-2018, 11:17 PM
mehano mehano is offline
What's HL7?
 
Join Date: May 2018
Posts: 5
mehano is on a distinguished road
Default

Quote:
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.
Reply With Quote
  #6  
Old 05-18-2018, 03:38 AM
bdearlove bdearlove is offline
Mirth Newb
 
Join Date: Apr 2007
Posts: 13
bdearlove
Default

I use the API along with PRTG Monitoring to query statistics and errors. Works really well with many alerting options.
Reply With Quote
  #7  
Old 05-18-2018, 03:59 AM
siddharth siddharth is offline
Mirth Guru
 
Join Date: Feb 2013
Posts: 808
siddharth is on a distinguished road
Default

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!
Reply With Quote
  #8  
Old 05-22-2018, 04:26 AM
mehano mehano is offline
What's HL7?
 
Join Date: May 2018
Posts: 5
mehano is on a distinguished road
Default

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.
Reply With Quote
  #9  
Old 05-22-2018, 05:54 AM
mehano mehano is offline
What's HL7?
 
Join Date: May 2018
Posts: 5
mehano is on a distinguished road
Default

Quote:
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 at 10:10 PM.
Reply With Quote
  #10  
Old 09-04-2018, 11:57 PM
Ligety Ligety is offline
What's HL7?
 
Join Date: Sep 2018
Posts: 1
Ligety is on a distinguished road
Default

Quote:
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
Reply With Quote
Reply

Tags
monitoring rest api cli

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 12:15 AM.


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