File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff 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+
You can’t perform that action at this time.
0 commit comments