check_docker.py is not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check_docker.py is not working

Post by cdienger »

Also, what version of docker is this and what api version? I believe you can get this from the command "docker version". Looking over https://docs.docker.com/engine/api/version-history/, the filter we try to run may not be a part of the API depending on the version.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Amit_Alone
Posts: 89
Joined: Fri May 08, 2020 11:47 am

Re: check_docker.py is not working

Post by Amit_Alone »

Docker Version and Api version are the same i.e. 1.5.5
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check_docker.py is not working

Post by cdienger »

I can't find anything on 1.5.5. Run the 'docker version' command to verify. See:

https://docs.docker.com/engine/api/#:~: ... 3A%2019.03.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Amit_Alone
Posts: 89
Joined: Fri May 08, 2020 11:47 am

Re: check_docker.py is not working

Post by Amit_Alone »

Below is the o/p got after running docker version.

Code: Select all

Client: Version:           19.03.3
 API version:       1.40
 Go version:        go1.12.10
 Git commit:        2355349d-
 Built:             10/14/2019 16:41:26
 OS/Arch:           windows/amd64
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: check_docker.py is not working

Post by cdienger »

Do you see a health status if you run "docker ps"? If not, then you will need to configure a health check for the containers you want to monitor. See https://howchoo.com/devops/how-to-add-a ... -container for an example of setting up a health check.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked