From 8f09c69236bae77a3d9d3bb26dc8684d199e4a1f Mon Sep 17 00:00:00 2001 From: Ryan Rawdon Date: Tue, 15 Sep 2026 18:26:46 +0000 Subject: [PATCH] Compiling lausser/check_nwc_health into the container build --- Dockerfile | 17 ++++++++++++++++- README.md | 1 + 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index cd9eca2..99b843b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,8 +57,10 @@ RUN echo postfix postfix/main_mailer_type string "'Internet Site'" | debconf-set libfreeradius-dev \ libgdchart-gd2-xpm-dev \ libgd-gd2-perl \ - libjson-perl \ + libfile-slurp-perl \ libldap2-dev \ + libjson-perl \ + libjson-xs-perl \ libmonitoring-plugin-perl \ libmariadb-dev \ libnagios-object-perl \ @@ -215,6 +217,19 @@ RUN cd /opt cp /opt/DF-Nagios-Plugins/check_jenkins/check_jenkins ${NAGIOS_HOME}/libexec/ && \ cp /opt/DF-Nagios-Plugins/check_vpn/check_vpn ${NAGIOS_HOME}/libexec/ +# Add check_nwc_health +RUN cd /tmp && \ + git clone https://github.com/lausser/check_nwc_health.git && \ + cd check_nwc_health && \ + git submodule update --init && \ + autoreconf && \ + ./configure && \ + make && \ + cp plugins-scripts/check_nwc_health ${NAGIOS_HOME}/libexec/ && \ + cd /tmp/ &&\ + rm -rf check_nwc_health + + RUN cd /tmp && \ wget https://github.com/chriscareycode/nagiostv-react/releases/download/v${NAGIOSTV_VERSION}/nagiostv-${NAGIOSTV_VERSION}.tar.gz && \ tar xf nagiostv-${NAGIOSTV_VERSION}.tar.gz -C /opt/nagios/share/ && \ diff --git a/README.md b/README.md index e9fa4bf..0a63009 100644 --- a/README.md +++ b/README.md @@ -71,3 +71,4 @@ The default credentials for the web interface is `nagiosadmin` / `nagios` * JE-Nagios-Plugins - custom plugins from Justin Ellison [] * DF-Nagios-Plugins - custom pluging for MSSQL monitoring from Dan Fruehauf [] * check-mqtt - custom plugin for mqtt monitoring from Jan-Piet Mens [] +* check_nwc_health - Swiss-army-knife plugin for checking many status and health aspects of network components []