Closed israelriibeiro closed 7 years ago
@israelriibeiro thanks I will take a look tonight when I have some time, I would like to understand where it broke.
I forgot to say, i was using:
Docker version 17.05.0-ce, build 89658be
cat /etc/debian_version 8.2
If you need more info, please, let me know.
that would be it, see: https://github.com/sensu-plugins/sensu-plugins-docker/pull/51
EDIT: Disregard not related.
I got this two problems:
WARNING: Error: #<NameError: undefined local variable or method `container_state' for #
container_state had no prior declaration.
response.body.include? 'no such id' I got this message: "{\"message\":\"No such container: e941be33c527\"}\n" Which always returned this error,
<NoMethodError: undefined method `[]' for nil:NilClass>
So i test if we'll always get 404 if a container does not exist. Everythink went ok.
CheckDockerContainer CRITICAL: e941be33c527 is not running on /var/run/docker.sock