Page 2 of 2

Re: check_docker.py

Posted: Fri Nov 08, 2019 1:02 pm
by exp-user1
Our server is not connected to the internet. any idea to download those update.

Re: check_docker.py

Posted: Fri Nov 08, 2019 2:08 pm
by scottwilkerson
You can download here
https://assets.nagios.com/downloads/nag ... docker.zip

then upload the zip through Admin -> Manage Config Wizards

Re: check_docker.py

Posted: Mon Nov 11, 2019 2:10 pm
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:

Re: check_docker.py

Posted: Mon Nov 11, 2019 3:47 pm
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.

Re: check_docker.py

Posted: Tue Nov 12, 2019 10:23 am
by exp-user1
Thanks all for your support. All is good.

Regards.

Re: check_docker.py

Posted: Tue Nov 12, 2019 11:01 am
by scottwilkerson
exp-user1 wrote:Thanks all for your support. All is good.

Regards.
Great!

Locking thread