1- FROM ubuntu:22 .04
1+ FROM ubuntu:24 .04
22MAINTAINER Jason Rivers <jason@jasonrivers.co.uk>
33
44ENV NAGIOS_HOME /opt/nagios
@@ -17,10 +17,10 @@ ENV NG_NAGIOS_CONFIG_FILE ${NAGIOS_HOME}/etc/nagios.cfg
1717ENV NG_CGI_DIR ${NAGIOS_HOME}/sbin
1818ENV NG_WWW_DIR ${NAGIOS_HOME}/share/nagiosgraph
1919ENV NG_CGI_URL /cgi-bin
20- ENV NAGIOS_BRANCH nagios-4.5.2
21- ENV NAGIOS_PLUGINS_BRANCH release-2.4.10
22- ENV NRPE_BRANCH nrpe-4.1.0
23- ENV NCPA_BRANCH v3.1.0
20+ ENV NAGIOS_BRANCH nagios-4.5.7
21+ ENV NAGIOS_PLUGINS_BRANCH release-2.4.12
22+ ENV NRPE_BRANCH nrpe-4.1.1
23+ ENV NCPA_BRANCH v3.1.1
2424ENV NSCA_BRANCH nsca-2.10.2
2525ENV NAGIOSTV_VERSION 0.9.2
2626
@@ -60,7 +60,7 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
6060 libjson-perl \
6161 libldap2-dev \
6262 libmonitoring-plugin-perl \
63- libmysqlclient -dev \
63+ libmariadb -dev \
6464 libnagios-object-perl \
6565 libnet-snmp-perl \
6666 libnet-snmp-perl \
@@ -75,11 +75,13 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
7575 libtext-glob-perl \
7676 libwww-perl \
7777 m4 \
78- netcat \
78+ netcat-traditional \
7979 parallel \
8080 php-cli \
8181 php-gd \
8282 postfix \
83+ python3 \
84+ python3-venv \
8385 python3-pip \
8486 python3-nagiosplugin \
8587 rsync \
@@ -90,7 +92,6 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set
9092 snmpd \
9193 snmp-mibs-downloader \
9294 unzip \
93- python3 \
9495 && \
9596 apt-get clean && rm -Rf /var/lib/apt/lists/*
9697
@@ -193,7 +194,7 @@ RUN cd /tmp && \
193194 cd /tmp && rm -Rf nagiosgraph
194195
195196RUN cd /opt && \
196- pip install pymssql paho-mqtt pymssql && \
197+ pip install --break-system-packages pymssql paho-mqtt && \
197198 git clone https://github.com/willixix/naglio-plugins.git WL-Nagios-Plugins && \
198199 git clone https://github.com/JasonRivers/nagios-plugins.git JR-Nagios-Plugins && \
199200 git clone https://github.com/justintime/nagios-plugins.git JE-Nagios-Plugins && \
@@ -284,7 +285,7 @@ RUN cd /opt/nagiosgraph/etc && \
284285RUN rm /opt/nagiosgraph/etc/fix-nagiosgraph-multiple-selection.sh
285286
286287# enable all runit services
287- RUN ln -s /etc/sv/* /etc/service
288+ RUN ln -sf /etc/sv/* /etc/service
288289
289290# fix ping permissions for nagios user
290291RUN chmod u+s /usr/bin/ping
0 commit comments