Latest Nagios Core and Nagios Plugins on a CentOS 6.9 base
10K+
This image pulls the latest Nagios Core and Nagios Plugins sources from GitHub and from them builds a functional installation. It uses a default htpasswd entry of "nagiosadmin:welcome".
Run with:
docker run -p 80:80 -dit nagiosenterprises/nagioscore
Generated using the following Dockerfile:
FROM centos:6.9
LABEL maintainer="Trevor McDonald <[email protected]>"
ARG HTPASSWD=welcome
# Pre-reqs
RUN yum install -y gcc glibc glibc-common wget unzip httpd php gd gd-devel perl autoconf gettext automake && yum clean all -y
WORKDIR /tmp
RUN wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/master.tar.gz && \
wget -O nagios-plugins.tar.gz https://github.com/nagios-plugins/nagios-plugins/archive/master.tar.gz && \
tar xzf nagioscore.tar.gz && \
tar xzf nagios-plugins.tar.gz && \
rm nagioscore.tar.gz && \
rm nagios-plugins.tar.gz
# Core setup
WORKDIR /tmp/nagioscore-master
RUN useradd nagios && \
usermod -a -G nagios apache && \
./configure && \
make all && \
make install && \
make install-init && \
chkconfig --add nagios && \
chkconfig --level 2345 httpd on && \
make install-commandmode && \
make install-config && \
make install-webconf
RUN htpasswd -b -c /usr/local/nagios/etc/htpasswd.users nagiosadmin $HTPASSWD
EXPOSE 80
# Plugins setup
WORKDIR /tmp/nagios-plugins-master
RUN ./tools/setup && \
./configure && \
make && \
make install && \
make install-root
# Finalize
WORKDIR /tmp
RUN rm -rf /tmp/nagioscore-master && \
rm -rf /tmp/nagios-plugins-master
COPY startup.sh startup.sh
CMD bash -C 'startup.sh';'bash'
Content type
Image
Digest
Size
205.3 MB
Last updated
almost 9 years ago
docker pull nagiosenterprises/nagioscore