From 3948702561a0c0bde3804ad44d7a60f0b57f164f Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Fri, 22 Mar 2019 17:30:42 +0100 Subject: [PATCH] IS_ALERTBOOT is redondant with IS_REBOOTMAIL --- evocheck.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index 12704c0..61275f3 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -313,8 +313,6 @@ if [ "$IS_NRPEDAEMON" = 1 ]; then grep -q "echo -n ' nrpe'; /usr/local/sbin/nrpe -d" /etc/rc.local || echo 'IS_NREPEDAEMON FAILED!' 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"