Monitoring Application in Docker container

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Monitoring Application in Docker container

Post by mohan23 »

Hi ,

I want to monitor an application that is being hosted in a docker container. Is there any way to monitor this using NagiosXI?

If yes, Please let me know all the possible ways of monitoring an application that is in container.

Regards,
Mohan
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring Application in Docker container

Post by benjaminsmith »

Hi @Mohan,

Nagios XI has built-in Docker Wizard to help configure monitoring. The wizard uses either our NCPA agent or the Docker Remote API for configuration. Can you let me know which application your're trying to monitor and I can provide some more detail.

Please take a look at the guide below to get started.

How To Monitor Docker Containers With Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: Monitoring Application in Docker container

Post by mohan23 »

we want to monitor "spring boot application" which is in docker container.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring Application in Docker container

Post by benjaminsmith »

Hi @Mohan23,

Monitoring Java applications typically done with JMX. We don't have an official guide on how to setup this up from within a Docker container, but it looks like JMX is accessible from within Spring Boot.

Monitoring JMX With Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Take a look at the guide and let me know if you have any questions.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: Monitoring Application in Docker container

Post by mcapra »

The only caveat I can think of is you'd need to be sure that the Spring Boot app's JMX port within the container is mapped to an acceptable port on the host.
https://docs.docker.com/config/containe ... etworking/

More info on running boot apps with JMX:
https://docs.spring.io/spring-boot/docs ... y-jmx.html
https://stackoverflow.com/questions/294 ... x-remotely
Former Nagios employee
https://www.mcapra.com/
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring Application in Docker container

Post by benjaminsmith »

Thanks @mcapra for the input.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked