Skip to content

Commit 97ee932

Browse files
author
tester bester
committed
Install Nagios Plugins
1 parent ab02d72 commit 97ee932

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

dockerfiles/3/Dockerfile.debian.bookworm

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,3 +120,17 @@ RUN cd /tmp && \
120120
--with-nagios-group=${NAGIOS_GROUP} && \
121121
make all && make install && make install-config && make install-commandmode && make install-webconf && make clean && \
122122
cd /tmp && rm -rf nagioscore
123+
124+
# Install Nagios Plugins
125+
RUN cd /tmp && \
126+
git clone https://github.com/nagios-plugins/nagios-plugins.git -b $NAGIOS_PLUGINS_BRANCH && \
127+
cd nagios-plugins && ./tools/setup && \
128+
./configure --prefix=${NAGIOS_HOME} --with-ipv6 \
129+
--with-ping-command="/usr/bin/ping -n -U -W %d -c %d %s" \
130+
--with-ping6-command="/usr/bin/ping -6 -n -U -W %d -c %d %s" && \
131+
make && make install && make clean && \
132+
mkdir -p /usr/lib/nagios/plugins && \
133+
ln -sf ${NAGIOS_HOME}/libexec/utils.pm /usr/lib/nagios/plugins && \
134+
chown root:root ${NAGIOS_HOME}/libexec/check_icmp && chmod u+s ${NAGIOS_HOME}/libexec/check_icmp && \
135+
cd /tmp && rm -rf nagios-plugins
136+

0 commit comments

Comments
 (0)