2022-01-30 17:08:04 +00:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
RUN apk add --no-cache \
|
2022-01-30 17:34:49 +00:00
|
|
|
ca-certificates \
|
2022-01-30 17:42:11 +00:00
|
|
|
curl \
|
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-01-30 18:38:57 +00:00
|
|
|
ssmtp && \
|
|
|
|
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
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
|
2022-01-30 18:38:57 +00:00
|
|
|
USER nagios
|
|
|
|
|
2022-01-30 17:08:04 +00:00
|
|
|
CMD ["/usr/sbin/nagios", "/etc/nagios/nagios.cfg"]
|