2019-07-20 21:43:14 +02:00
|
|
|
FROM alpine:3.10
|
2017-09-20 10:56:49 +02:00
|
|
|
LABEL maintainer "André Peters <andre.peters@servercow.de>"
|
|
|
|
|
|
|
|
# Installation
|
|
|
|
RUN apk add --update \
|
2018-05-06 09:15:35 +02:00
|
|
|
&& apk add --no-cache nagios-plugins-smtp \
|
|
|
|
nagios-plugins-tcp \
|
|
|
|
nagios-plugins-http \
|
|
|
|
nagios-plugins-ping \
|
2019-09-12 08:35:53 +02:00
|
|
|
mariadb-client \
|
2018-05-06 09:15:35 +02:00
|
|
|
curl \
|
|
|
|
bash \
|
2018-10-27 23:44:06 +02:00
|
|
|
coreutils \
|
2018-05-06 09:15:35 +02:00
|
|
|
jq \
|
|
|
|
fcgi \
|
2019-04-18 22:09:26 +02:00
|
|
|
openssl \
|
2018-05-06 09:15:35 +02:00
|
|
|
nagios-plugins-mysql \
|
|
|
|
nagios-plugins-dns \
|
|
|
|
nagios-plugins-disk \
|
|
|
|
bind-tools \
|
|
|
|
redis \
|
|
|
|
perl \
|
2019-12-02 14:23:54 +01:00
|
|
|
perl-net-dns \
|
2018-05-06 09:15:35 +02:00
|
|
|
perl-io-socket-ssl \
|
2018-05-27 21:40:53 +02:00
|
|
|
perl-io-socket-inet6 \
|
2018-05-06 09:15:35 +02:00
|
|
|
perl-socket \
|
|
|
|
perl-socket6 \
|
|
|
|
perl-mime-lite \
|
|
|
|
perl-term-readkey \
|
2017-10-14 23:26:08 +02:00
|
|
|
tini \
|
2018-06-27 22:50:31 +02:00
|
|
|
tzdata \
|
2019-06-10 22:40:21 +02:00
|
|
|
whois \
|
2019-12-02 14:23:54 +01:00
|
|
|
&& curl https://raw.githubusercontent.com/mludvig/smtp-cli/v3.10/smtp-cli -o /smtp-cli \
|
2018-05-06 09:15:35 +02:00
|
|
|
&& chmod +x smtp-cli
|
2017-09-20 10:56:49 +02:00
|
|
|
|
|
|
|
COPY watchdog.sh /watchdog.sh
|
2020-04-06 11:23:20 +02:00
|
|
|
COPY check_mysql_slavestatus.sh /usr/lib/nagios/plugins/check_mysql_slavestatus.sh
|
2017-09-20 10:56:49 +02:00
|
|
|
|
|
|
|
CMD /watchdog.sh 2> /dev/null
|