blob: 00cb8e990e8dac717ab0b4fff9cad34ed02b1539 [file] [log] [blame]
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +01001FROM alpine:3.14
Matthias Andreas Benkardb382b102021-01-02 15:32:21 +01002LABEL 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
Matthias Andreas Benkard12a57352021-12-28 18:02:04 +010039CMD /watchdog.sh