Thank you for providing an updated/patched check_docker.py file. Unfortunately I'm still having the problem. I also tried running the check manually (based off the arguments the Docker Wizard put into the service check.
Code: Select all
[nagios@ma1p-nagiosxi libexec]$ ./check_ncpa.py -H ma1p-dock02 -t 'XXXX-key-from-nagiosXI-XXXX' -P 5693 -M plugins/check_docker.py -q "args=-H http:/v1.30/ ,args=-s /var/run/docker.sock,args=--check-type 'containers_cpu',args=--all,args=-t 30,args=--networks-use-avg,args=-w '30',args=-c '50'"
Traceback (most recent call last):
File "/usr/local/ncpa/plugins/check_docker.py", line 988, in <module>
_ = main()
File "/usr/local/ncpa/plugins/check_docker.py", line 959, in main
checks = choose_checks(options)
File "/usr/local/ncpa/plugins/check_docker.py", line 226, in choose_checks
check_data = get_threshold_maps(options.warning, options.critical, selection)
File "/usr/local/ncpa/plugins/check_docker.py", line 329, in get_threshold_maps
for triplet in zip(attrs.keys(), warning_list, critical_list):
AttributeError: 'list' object has no attribute 'keys'
[nagios@ma1p-nagiosxi libexec]$
[nagios@ma1p-nagiosxi libexec]$ md5sum /usr/local/ncpa/plugins/check_docker.py
aad080c4eb8d753b05fc4b9c8ead1485 /usr/local/ncpa/plugins/check_docker.py
[nagios@ma1p-nagiosxi libexec]$
[nagios@ma1p-nagiosxi libexec]$ ls -l /usr/local/ncpa/plugins/check_docker.py
-rwxr-xr-x 1 nagios nagios 39293 Jun 10 12:13 /usr/local/ncpa/plugins/check_docker.py
[nagios@ma1p-nagiosxi libexec]$