From 9053325637736f9e2dabf39e93f6f07b9fdfd4e5 Mon Sep 17 00:00:00 2001 From: Doug Le Tough Date: Sun, 23 Jul 2017 07:24:45 +0200 Subject: [PATCH] "MaJ expl_check_all_nrpe.sh" --- bin/expl_check_all_nrpe.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/expl_check_all_nrpe.sh b/bin/expl_check_all_nrpe.sh index 3b9077d..a2ebca9 100755 --- a/bin/expl_check_all_nrpe.sh +++ b/bin/expl_check_all_nrpe.sh @@ -125,16 +125,17 @@ function check_all { for CHECK in $(find ${NRPE_CHECK_PATH} -type f -executable -exec basename {} .cfg \; | sort ) do + fct_message "Contrôle ${CHECK}:" -color jaune for HOST in ${TETALAB_VM[@]} do CRITICAL=1 if [ "${HOST}" == "${INFRA_SERVER}" ]; then - fct_message "Contrôle ${CHECK} sur ${HOST}" -color jaune + fct_message " * ${HOST}" RESULT=$(${NRPE_CHECK_BIN} -H ${HOST} -c ${CHECK} | cut -d'|' -f1) CRITICAL=$(echo ${RESULT} | grep OK | wc -l) elif [ $(echo ${CHECK} | grep "check_http_" | wc -l) -eq 0 ]; then # On ne fait pas les checks HTTP sur les autres VM que le serveur d'infra (sousetsuken) - fct_message "Contrôle ${CHECK} sur ${HOST}" -color jaune + fct_message " * ${HOST}" RESULT=$(${NRPE_CHECK_BIN} -H ${HOST} -c ${CHECK} | cut -d'|' -f1) CRITICAL=$(echo ${RESULT} | grep OK | wc -l) fi