From 9611d0e278ff4e9d8bbafebdfb97062f2cdb021f Mon Sep 17 00:00:00 2001 From: Steve Wilkerson Date: Thu, 18 Jul 2019 16:07:24 -0500 Subject: [PATCH] Nagios: Add elasticsearch python clients to image This adds the elasticsearch and elasticsearch-dsl python client packages to the Nagios image, so that they can be used to support plugins and scripts for querying Elasticsearch directly Change-Id: Ic235bf1409ee58aa49d299f07c27dc166b3b8c1f Signed-off-by: Steve Wilkerson --- nagios/Dockerfile.ubuntu_xenial | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nagios/Dockerfile.ubuntu_xenial b/nagios/Dockerfile.ubuntu_xenial index 9b4195e..c517021 100644 --- a/nagios/Dockerfile.ubuntu_xenial +++ b/nagios/Dockerfile.ubuntu_xenial @@ -7,6 +7,8 @@ ENV NAGIOS_HOME /opt/nagios ENV NAGIOS_PLUGIN_DIR /usr/lib/nagios/plugins ENV APACHE_FRONTEND_PORT 8000 ENV APACHE_FRONTEND_SECURE_PORT 8443 +ENV ES_VERSION=5.5.3 +ENV ES_DSL_VERSION=5.4.0 RUN apt-get -o Acquire::ForceIPv4=true -y update \ && apt-get -y install curl apache2 checkinstall unzip libapache2-mod-php snmp snmpd snmp-mibs-downloader jq python-requests \ @@ -18,6 +20,8 @@ RUN pip --no-cache-dir install --upgrade pip \ && hash -r \ && pip --no-cache-dir install --upgrade setuptools \ && pip --no-cache-dir install --upgrade kubernetes \ + && pip --no-cache-dir install --upgrade elasticsearch==${ES_VERSION} \ + && pip --no-cache-dir install --upgrade elasticsearch-dsl==${ES_DSL_VERSION} \ && pip uninstall -y urllib3 \ && pip --no-cache-dir install urllib3==1.23