blob: e82bc5d016f9544fe99fb5b06062259dd1af0892 [file] [log] [blame]
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01001FROM alpine:3.11
2LABEL maintainer "André Peters <andre.peters@servercow.de>"
3
4# Installation
5RUN apk add --update \
6 && apk add --no-cache nagios-plugins-smtp \
7 nagios-plugins-tcp \
8 nagios-plugins-http \
9 nagios-plugins-ping \
10 mariadb-client \
11 curl \
12 bash \
13 coreutils \
14 jq \
15 fcgi \
16 openssl \
17 nagios-plugins-mysql \
18 nagios-plugins-dns \
19 nagios-plugins-disk \
20 bind-tools \
21 redis \
22 perl \
23 perl-net-dns \
24 perl-io-socket-ssl \
25 perl-io-socket-inet6 \
26 perl-socket \
27 perl-socket6 \
28 perl-mime-lite \
29 perl-term-readkey \
30 tini \
31 tzdata \
32 whois \
33 && curl https://raw.githubusercontent.com/mludvig/smtp-cli/v3.10/smtp-cli -o /smtp-cli \
34 && chmod +x smtp-cli
35
36COPY watchdog.sh /watchdog.sh
37COPY check_mysql_slavestatus.sh /usr/lib/nagios/plugins/check_mysql_slavestatus.sh
38
39CMD /watchdog.sh 2> /dev/null