Skip to content

Commit acd77c1

Browse files
authored
Merge pull request #169 from wolframroesler/nagios-update
Update Nagios Core from 4.5.2 to 4.5.7
2 parents 5503ee7 + 4ad82ac commit acd77c1

2 files changed

Lines changed: 16 additions & 15 deletions

File tree

Dockerfile

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:22.04
1+
FROM ubuntu:24.04
22
MAINTAINER Jason Rivers <jason@jasonrivers.co.uk>
33

44
ENV NAGIOS_HOME /opt/nagios
@@ -17,10 +17,10 @@ ENV NG_NAGIOS_CONFIG_FILE ${NAGIOS_HOME}/etc/nagios.cfg
1717
ENV NG_CGI_DIR ${NAGIOS_HOME}/sbin
1818
ENV NG_WWW_DIR ${NAGIOS_HOME}/share/nagiosgraph
1919
ENV 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
2424
ENV NSCA_BRANCH nsca-2.10.2
2525
ENV 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

195196
RUN 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 && \
284285
RUN 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
290291
RUN chmod u+s /usr/bin/ping

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ Docker image for Nagios
44

55
Build Status: [![Build Status](https://travis-ci.org/JasonRivers/Docker-Nagios.svg?branch=master)](https://travis-ci.org/JasonRivers/Docker-Nagios)
66

7-
Nagios Core 4.5.2 running on Ubuntu 22.04 LTS with NagiosGraph & NRPE
7+
Nagios Core running on Ubuntu 24.04 LTS with NagiosGraph & NRPE
88

99
| Product | Version |
1010
| ------- | ------- |
11-
| Nagios Core | 4.5.2 |
12-
| Nagios Plugins | 2.4.10 |
13-
| NRPE | 4.1.0 |
14-
| NCPA | 3.1.0 |
11+
| Nagios Core | 4.5.7 |
12+
| Nagios Plugins | 2.4.12 |
13+
| NRPE | 4.1.1 |
14+
| NCPA | 3.1.1 |
1515
| NSCA | 2.10.2 |
1616

1717
### Configurations

0 commit comments

Comments
 (0)