check_docker.py

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Re: check_docker.py

Post by exp-user1 »

Our server is not connected to the internet. any idea to download those update.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_docker.py

Post by scottwilkerson »

You can download here
https://assets.nagios.com/downloads/nag ... docker.zip

then upload the zip through Admin -> Manage Config Wizards
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Re: check_docker.py

Post by exp-user1 »

would you please check why "Containers Are Healthy" check is still in critical?

/usr/local/nagios/libexec/check_docker.py -H http://10.239.128.73:2376/ --check-type 'containers_healthy' --all -t 0 --ignore-no-healthcheck --percentage -l -w '50:' -c '30:'
CRITICAL: 0 containers monitored | total_usage=0%;50:;30:
You do not have the required permissions to view the files attached to this post.
swolf

Re: check_docker.py

Post by swolf »

exp-user1 wrote:would you please check why "Containers Are Healthy" check is still in critical?

/usr/local/nagios/libexec/check_docker.py -H http://10.239.128.73:2376/ --check-type 'containers_healthy' --all -t 0 --ignore-no-healthcheck --percentage -l -w '50:' -c '30:'
CRITICAL: 0 containers monitored | total_usage=0%;50:;30:
It looks like none of your containers have a healthcheck specified - the plugin goes critical to alert you that it doesn't seem to be monitoring anything.

The best solution here is to remove the service. If you don't use the healthcheck feature of docker, there's no reason to monitor it.

If you have some requirement to keep the check in place, you can remove the --ignore-no-healthcheck flag.
exp-user1
Posts: 65
Joined: Mon Oct 21, 2019 1:56 pm

Re: check_docker.py

Post by exp-user1 »

Thanks all for your support. All is good.

Regards.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_docker.py

Post by scottwilkerson »

exp-user1 wrote:Thanks all for your support. All is good.

Regards.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked