Update the IS_NRPE check

This commit is contained in:
Tristan PILAT 2019-03-22 17:24:45 +01:00
parent e509ea879e
commit 4f1ee5a982
1 changed files with 4 additions and 3 deletions

View File

@ -307,9 +307,6 @@ if [ "$IS_POSTGRESQL" = 1 ]; then
fi
if [ "$IS_NRPE" = 1 ]; then
( pkg info | grep -qE "nagios-plugins-[0-9.]" \
&& pkg info | grep -q nagios-plugins-ntp \
&& pkg info | grep -q nrpe ) || echo 'IS_NRPE FAILED!'
fi
if [ "$IS_NRPEDAEMON" = 1 ]; then
@ -318,6 +315,10 @@ fi
if [ "$IS_ALERTBOOT" = 1 ]; then
grep -qE "^date \| mail -sboot/reboot .*evolix.fr$" /etc/rc.local || echo 'IS_ALERTBOOT FAILED!'
( pkg_info | grep -q monitoring-plugins && pkg_info | grep -q nrpe ) || echo 'IS_NRPE FAILED!'
if [[ "$VERBOSE" == 1 ]]; then
echo "nrpe and/or monitoring-plugins are not installed! Please add with pkg_add nrpe monitoring-plugins"
fi
fi
if [ "$IS_RSYNC" = 1 ]; then