mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-13 01:45:59 +00:00
* watchdog: use dig instead of check_dns check_dns is slower and uses more system resources, dig wrapped in a script is a more performant approach and uses fewer system resources * added debug mode + compose image bump --------- Co-authored-by: maxi322 <maxi322@users.noreply.github.com> Co-authored-by: DerLinkman <niklas.meyer@servercow.de>
42 lines
906 B
Docker
42 lines
906 B
Docker
FROM alpine:3.21
|
|
|
|
LABEL maintainer = "The Infrastructure Company GmbH <info@servercow.de>"
|
|
|
|
# Installation
|
|
RUN apk add --update \
|
|
&& apk add --no-cache nagios-plugins-smtp \
|
|
nagios-plugins-tcp \
|
|
nagios-plugins-http \
|
|
nagios-plugins-ping \
|
|
mariadb-client \
|
|
curl \
|
|
bash \
|
|
coreutils \
|
|
jq \
|
|
fcgi \
|
|
openssl \
|
|
nagios-plugins-mysql \
|
|
nagios-plugins-disk \
|
|
bind-tools \
|
|
redis \
|
|
perl \
|
|
perl-net-dns \
|
|
perl-io-socket-ssl \
|
|
perl-io-socket-inet6 \
|
|
perl-socket \
|
|
perl-socket6 \
|
|
perl-mime-lite \
|
|
perl-term-readkey \
|
|
tini \
|
|
tzdata \
|
|
whois \
|
|
&& curl https://raw.githubusercontent.com/mludvig/smtp-cli/v3.10/smtp-cli -o /smtp-cli \
|
|
&& chmod +x smtp-cli \
|
|
&& mkdir /usr/lib/mailcow
|
|
|
|
COPY watchdog.sh /watchdog.sh
|
|
COPY check_mysql_slavestatus.sh /usr/lib/nagios/plugins/check_mysql_slavestatus.sh
|
|
COPY check_dns.sh /usr/lib/mailcow/check_dns.sh
|
|
|
|
CMD ["/watchdog.sh"]
|