Browse Source

"MaJ ctl_all_nrpe.sh"

master
Doug Le Tough 5 years ago
parent
commit
52a08ae3e7
  1. 4
      bin/ctl_all_nrpe.sh
  2. 1
      conf/ctl_all_nrpe.conf

4
bin/ctl_all_nrpe.sh

@ -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

1
conf/ctl_all_nrpe.conf

@ -33,4 +33,3 @@ PROCESS[19]=billy.local.tetalab.org:/usr/sbin/ntpd @@ -33,4 +33,3 @@ PROCESS[19]=billy.local.tetalab.org:/usr/sbin/ntpd
PROCESS[20]=billy.local.tetalab.org:/usr/sbin/crond
PROCESS[21]=billy.local.tetalab.org:/usr/bin/nrpe
PROCESS[22]=billy.local.tetalab.org:/usr/sbin/httpd
PROCESS[22]=billy.local.tetalab.org:/usr/sbin/test_monitoring_a_la_con

Loading…
Cancel
Save