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