Monitoring Docker Containers

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 Docker Containers

Post by mohan23 »

I can see there is a wizard for monitoring Docker containers and I don't have docker monitoring wizard in my nagios XI.

can someone let me know how to add Docker monitoring wizard into my Nagios XI ?

I have searched for wizard in below link , but I didn't found anything

https://exchange.nagios.org/directory/A ... n-Wizards/
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring Docker Containers

Post by scottwilkerson »

This would get installed with the next minor release (5.6.0) or if you run the upgrade using the -f flag

However, I am attaching it to this post and you can install through Admin -> Manage Config Wizards
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: Monitoring Docker Containers

Post by mohan23 »

Thanks for providing information. I have enabled monitoring successfully using Remote Docker API approach. But in regular intervals I nagios is showing message as "UNKNOWN: No container IDs selected" for all the metrics

If containers are really down , plugin has to throw alert for "Docker - Containers Are Running" metric as containers are down.

Can you let me know what is the cause of this alert message.
swolf

Re: Monitoring Docker Containers

Post by swolf »

In this case, the "UNKNOWN" message is happening not because the containers are down, but because the plugin doesn't know which containers need to be checked.

A couple of questions for you:
In the wizard, under the "Checks to Run" section, what did you choose for "Monitor:"?

If you chose a list of containers or a list of networks, did you fill in the list of Container Names/IDs (and/or click the "Populate Container/Network List" button)?

It would also be helpful if you could go into Configure -> Core Config Manager -> Services -> Edit for the service that's having issues, and show us $ARG1$ and $ARG2$. If this is confidential then feel free to PM me the info.
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: Monitoring Docker Containers

Post by mohan23 »

I have sent you PM , can you please have a look and get this addressed at earliest.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring Docker Containers

Post by benjaminsmith »

Hi @mohan23

One of our developers is looking into your case right now and we'll update you in a few hours. Thanks for your patience.
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 Docker Containers

Post by mohan23 »

Re: Dockers Query In nagios

Sent: Wed Feb 13, 2019 4:25 am
From: mohan23
To: swolf

Thank you for all clarification.. when container is down, I want plugin to show OK state saying OK: 0 containers monitored , Instead it showing me "UNKNOWN: 0 containers monitored" and performance data is not showing when it is in UNKNOWN state. can you also fix this .

When container is down, check for Container Healty should return OK: 0 containers monitored along with performance data as count 0.

Although there is difference between container going down and container is removed. But I don't see much difference from metrics that we are enabling using this plugin. I see critical alert when container going down which is expected, But at the same time for "Container Exists" metrics im seeing critical event with message "CRITICAL: 0 containers found" . can you please clarify me on this?



Appreciate your quick help on this
swolf

Re: Monitoring Docker Containers

Post by swolf »

Just so other technicians know, we're continuing to handle this through PMs. (Also posting so that this thread doesn't show in the various dashboards/metrics that other technicians need to worry about)

His most recent post here was responded to, and I'm juggling this with work for upcoming releases, but his most recent set of issues will have a response sometime early tomorrow.
mohan23
Posts: 118
Joined: Tue Oct 03, 2017 7:11 am

Re: Monitoring Docker Containers

Post by mohan23 »

Hi swolf,

I have sent you PM, can you please respond to me
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Monitoring Docker Containers

Post by benjaminsmith »

Hi @mohan23,

Swolf is out of the office today but will be back in tomorrow and I will follow up him on this issue. Thank you.
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