Update nodemgmt-scripts.sh

This commit is contained in:
2019-01-29 23:56:33 -06:00
parent bde9fea75f
commit 59ce021c74

View File

@@ -142,7 +142,6 @@ case "$1" in
lip=$(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1)
for srvc in "${LOCAL_SERVICES[@]}"
do
echo "${lip} - checking ${srvc}"
if [ $(${NCMD} pgrep ${srvc} | wc -l) -lt "1" ]; then
echo "${NM_SERVICES[${srvc}]} is down" | mail -s "iDS-Node${nid}-${lip}" ${STATUS_CHECK_EMAIL}
fi
@@ -157,7 +156,6 @@ case "$1" in
fi
for srvc in "${NODE_SERVICES[@]}"
do
echo "${nip} - checking ${srvc}"
if [ $(${NCMD} pgrep ${srvc} | wc -l) -lt "1" ]; then
echo "${NM_SERVICES[${srvc}]} is down" | mail -s "iDS-Node${nid}-${nip}" ${STATUS_CHECK_EMAIL}
fi