2022-02-20 09:01:27 +00:00
|
|
|
FROM alpine:3.12
|
2022-01-30 17:08:04 +00:00
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
2022-01-30 17:34:49 +00:00
|
|
|
ca-certificates \
|
2022-02-20 10:33:46 +00:00
|
|
|
coreutils \
|
2022-01-30 17:42:11 +00:00
|
|
|
curl \
|
2022-02-06 09:26:07 +00:00
|
|
|
file \
|
2022-02-05 22:42:52 +00:00
|
|
|
iputils \
|
2022-01-30 17:54:11 +00:00
|
|
|
mailx \
|
2022-01-30 17:08:04 +00:00
|
|
|
nagios \
|
|
|
|
nagios-plugins \
|
2022-02-05 23:07:11 +00:00
|
|
|
nagios-plugins-cluster \
|
2022-01-30 17:08:04 +00:00
|
|
|
nagios-plugins-dig \
|
|
|
|
nagios-plugins-dns \
|
2022-02-05 22:58:29 +00:00
|
|
|
nagios-plugins-dummy \
|
2022-01-30 17:08:04 +00:00
|
|
|
nagios-plugins-http \
|
|
|
|
nagios-plugins-ldap \
|
|
|
|
nagios-plugins-mysql \
|
|
|
|
nagios-plugins-pgsql \
|
|
|
|
nagios-plugins-ping \
|
|
|
|
nagios-plugins-smtp \
|
|
|
|
nagios-plugins-ssh \
|
|
|
|
nagios-plugins-ssl_validity \
|
2022-02-05 23:05:02 +00:00
|
|
|
nagios-plugins-tcp \
|
2022-01-30 17:08:04 +00:00
|
|
|
nagios-web \
|
2022-01-30 17:34:49 +00:00
|
|
|
nrpe-plugin \
|
2022-02-20 09:01:27 +00:00
|
|
|
openssh-client \
|
2022-02-06 09:26:07 +00:00
|
|
|
openssl \
|
2022-02-06 00:31:27 +00:00
|
|
|
perl \
|
2022-02-06 09:23:17 +00:00
|
|
|
python3 \
|
|
|
|
py3-dnspython \
|
2022-02-05 23:26:55 +00:00
|
|
|
ssmtp \
|
|
|
|
tini && \
|
2022-01-30 18:38:57 +00:00
|
|
|
chown nagios /etc/ssmtp/ssmtp.conf
|
2022-01-30 17:08:04 +00:00
|
|
|
|
2022-01-30 17:42:11 +00:00
|
|
|
COPY FREE_send_notification.sh /usr/bin/FREE_send_notification.sh
|
2022-01-30 17:34:49 +00:00
|
|
|
COPY entrypoint.sh /docker-entrypoint.sh
|
|
|
|
|
2022-02-06 09:23:17 +00:00
|
|
|
ADD https://raw.githubusercontent.com/stump/check_sshfp/master/check_sshfp /usr/lib/nagios/plugins/check_sshfp
|
2022-02-06 09:26:07 +00:00
|
|
|
ADD https://raw.githubusercontent.com/matteocorti/check_ssl_cert/master/check_ssl_cert /usr/lib/nagios/plugins/check_ssl_cert
|
2022-02-06 00:31:27 +00:00
|
|
|
ADD https://gist.githubusercontent.com/nemunaire/9669659/raw/977cfce7246249c17e213b0b2b231220257754fa/nagios-status.pl /usr/bin/nagios-status.pl
|
2022-02-06 09:31:24 +00:00
|
|
|
RUN chmod 755 /usr/lib/nagios/plugins/check_sshfp /usr/lib/nagios/plugins/check_ssl_cert /usr/bin/nagios-status.pl
|
2023-11-12 00:45:56 +00:00
|
|
|
COPY check_matrix.py /usr/lib/nagios/plugins/check_matrix
|
2022-01-30 18:38:57 +00:00
|
|
|
|
2022-02-06 00:31:27 +00:00
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
USER nagios
|
2022-02-06 00:47:36 +00:00
|
|
|
VOLUME ["/etc/nagios", "/var/nagios"]
|
2022-01-30 17:08:04 +00:00
|
|
|
CMD ["/usr/sbin/nagios", "/etc/nagios/nagios.cfg"]
|