"MaJ expl_check_all_nrpe.sh"

This commit is contained in:
Doug Le Tough 2017-07-23 07:13:49 +02:00
parent d4da1356d1
commit 7f4cf9af4b
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
#------------------------------------------------------------------------------------------------------------------ #------------------------------------------------------------------------------------------------------------------
# Liste des paramètres de configuration: # Liste des paramètres de configuration:
# #
# IRCBOT=/usr/local/bin/tetalab/ircbot.py # IRC_BOT=/usr/local/bin/tetalab/ircbot.py
# NRPE_CHECK_PATH=/etc/nagios/nrpe/ # NRPE_CHECK_PATH=/etc/nagios/nrpe/
# NRPE_CHECK_BIN=/usr/libexec/nagios/check_nrpe # NRPE_CHECK_BIN=/usr/libexec/nagios/check_nrpe
# INFRA_SERVER=sousetsuken.local.tetalab.org # INFRA_SERVER=sousetsuken.local.tetalab.org
@ -146,7 +146,7 @@ function check_all
function send_message function send_message
{ {
if [ ${#MESSAGE} -gt 0 ]; then if [ ${#MESSAGE} -gt 0 ]; then
${IRCBOT} "${MESSAGE}" ${IRC_BOT} "${MESSAGE}"
fi fi
} }

View File

@ -1,4 +1,4 @@
IRCBOT=/usr/local/bin/tetalab/ircbot.py IRC_BOT=/usr/local/bin/tetalab/ircbot.py
NRPE_CHECK_PATH=/etc/nagios/nrpe/ NRPE_CHECK_PATH=/etc/nagios/nrpe/
NRPE_CHECK_BIN=/usr/libexec/nagios/check_nrpe NRPE_CHECK_BIN=/usr/libexec/nagios/check_nrpe
INFRA_SERVER=sousetsuken.local.tetalab.org INFRA_SERVER=sousetsuken.local.tetalab.org