Docker Hints

Some hints and alternative configurations for the docker instance running the checks.

exec.sh

Instead of starting and closing a docker instance for every check, one can also start the instance once and send the checks to it:

  1. docker load -i check_netapp_pro.tar.gz (this is the same for run.sh and exec.sh)

  2. Start an instance of the container with name netapp_checks and restart-policy always:

docker run \
        --network=host \
        -v /usr/local/check_netapp_pro/var/store:/usr/local/check_netapp_pro/var/store\
        -v /usr/local/check_netapp_pro/etc:/usr/local/check_netapp_pro/etc \
        --name netapp_checks \
        --tty \
        --restart always \
        --detach \
        check_netapp_pro
  1. This configuration will start the docker-instance netapp_checks together with the docker-service. This instance will then run the checks sent to it with docker exec.

    Instead of run.sh you must use exec.sh with the following content:

    #!/bin/bash
    docker exec --tty netapp_checks $@