This commit is contained in:
2019-01-29 22:50:17 -06:00
parent e161e65f30
commit 3b8aa630cf
2 changed files with 1 additions and 3 deletions

View File

@@ -131,7 +131,6 @@ case "$1" in
fi
IFS=,; SERVICES2=(${SERVICES1}); HOSTS2=(${HOSTS1}); unset IFS
nid=1
for nip in "${HOSTS2[@]}"
do
@@ -140,7 +139,6 @@ case "$1" in
fi
for srvc in "${SERVICES2[@]}"
do
echo "checking $srvc"
if [ "${STATUS_CHECK_EMAIL}" != "" ]; then
if [ $(${NCMD} pgrep ${srvc} | wc -l) -lt "1" ]; then
echo "${NM_SERVICES[${srvc}]} is down" | mail -s "iDS-Node${nid}-${nip}" ${STATUS_CHECK_EMAIL}

2
run.sh
View File

@@ -10,7 +10,7 @@ declare -A SERVICES
if [ "$1" != "service" ] && [ "$1" != "status-check" ]; then
if [ "$1" != "status" ]; then
if [ "$1" != "status" ] && if [ -z ${LOCAL_SERVICES+x} ]; then
echo ""
echo -e "${idsCL[Yellow]} NodeMgmt - Galera/NGINX Node Management${idsCL[Default]} ${idsCL[DarkGray]}(ver-${VERS})${idsCL[Default]}"
echo -e "${idsCL[Yellow]}-------------------------------------------------------------${idsCL[Default]}"