From 0ac627b35458368957234711947db4d8b98c7bc8 Mon Sep 17 00:00:00 2001 From: El Acheche ANIS Date: Fri, 20 Dec 2019 23:50:56 +0100 Subject: [PATCH] Update README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7cc40db..9e9ae4b 100644 --- a/README.md +++ b/README.md @@ -11,10 +11,13 @@ pip3 install docker Please check this [link](https://github.com/docker/docker-py) To get more information about this lib please check ## Get the script to the right path in the Docker server: + ``` -curl https://raw.githubusercontent.com/elacheche/docker_check/master/docker_check.py > /usr/lib/nagios/plugins/docker_check.py +DOWNLOAD_URL=$(curl -s https://api.github.com/repos/elacheche/docker_check/releases/latest | awk '/browser_download_url/ {gsub("\"","");print $2}') +curl -Lso /usr/lib/nagios/plugins/docker_check.py $DOWNLOAD_URL chmod +x /usr/lib/nagios/plugins/docker_check.py ``` +You can find the package on the [Icinga Exchange](https://exchange.icinga.com/elacheche/Docker%20containers%20check/releases) as well, where you can download the latest release. ## Add nagios user to docker group: ```