|
|
|
@ -182,15 +182,15 @@ function check_all
@@ -182,15 +182,15 @@ function check_all
|
|
|
|
|
|
|
|
|
|
function check_process |
|
|
|
|
{ |
|
|
|
|
fct_message "Vérification des processus:" |
|
|
|
|
for PROC in ${PROCESS[@]} |
|
|
|
|
do |
|
|
|
|
HOST=$(echo ${PROC} | cut -d: -f1) |
|
|
|
|
PROC=$(echo ${PROC} | cut -d: -f2) |
|
|
|
|
fct_message "Vérification du process ${PROC} sur ${HOST}" |
|
|
|
|
ctl_host_process.sh -vm ${HOST} -process ${PROC} |
|
|
|
|
RET_VAL=$? |
|
|
|
|
if [ ! ${RET_VAL} -eq 0 ]; then |
|
|
|
|
fct_message "Processus ${PROC} inexistant sur ${HOST}" -color orange |
|
|
|
|
fct_message "Processus ${PROC} inexistant sur ${HOST}" -color rose |
|
|
|
|
MESSAGE="${MESSAGE}|||${HOST}: CRITICAL: Processus ${PROC} inexistant sur ${HOST}" |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|