Update status.inc
This commit is contained in:
@@ -154,7 +154,7 @@ STATUS(){
|
|||||||
DIVIDER; echo -e "${idsST[Reset]}"
|
DIVIDER; echo -e "${idsST[Reset]}"
|
||||||
fi
|
fi
|
||||||
for nip in "${!var}"; do
|
for nip in "${!var}"; do
|
||||||
[ "${ST_ACTION}" != "check" ] && echo -en " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}"
|
[ "${ST_ACTION}" != "check" ] && echo -en " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}] - Verifying Host...${idsST[Reset]}"
|
||||||
|
|
||||||
if [[ "${RUN_NODE_IP}" == *"${nip}"* ]]; then
|
if [[ "${RUN_NODE_IP}" == *"${nip}"* ]]; then
|
||||||
NCMD=''; LH='- localhost'
|
NCMD=''; LH='- localhost'
|
||||||
@@ -171,7 +171,7 @@ STATUS(){
|
|||||||
# echo "HERE: $checkhost - $checkhostssl"
|
# echo "HERE: $checkhost - $checkhostssl"
|
||||||
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
|
if [ "${checkhost}" != "false" ] && [ "${checkhostssl}" == "ok" ]; then
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
#echo -en " ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]}[${nip}]${idsST[Reset]}"
|
[ "${ST_ACTION}" != "check" ] && echo -en "\033[K ${idsST[Bold]}${idsCL[LightCyan]}${NM_HOSTNAMES[${nip}]} [${nip}]${idsST[Reset]}"
|
||||||
if ([ "${ST_ACTION}" == "report" ] && [ "${2}" == "email" ]) || [ "${ST_ACTION}" != "report" ]; then
|
if ([ "${ST_ACTION}" == "report" ] && [ "${2}" == "email" ]) || [ "${ST_ACTION}" != "report" ]; then
|
||||||
if [ "${NTYPE}" == "OFW" ]; then
|
if [ "${NTYPE}" == "OFW" ]; then
|
||||||
uptime=$(${NCMD} uptime | awk '{print $3}' | cut -d, -f1)
|
uptime=$(${NCMD} uptime | awk '{print $3}' | cut -d, -f1)
|
||||||
|
|||||||
Reference in New Issue
Block a user