Update nodemgmt-scripts.sh

This commit is contained in:
2023-04-27 10:20:14 -05:00
parent 3445e76d9a
commit 06e7d47ef7

View File

@@ -153,12 +153,13 @@ STATUS(){
if [ "${checkhost}" != "false" ]; then
if [ "${ST_ACTION}" != "check" ]; then
#echo -en " ${idsST[Bold]}${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}"
if [ "${ST_ACTION}" = "report" ] && [ "${2}" = "email" ]; then
uptime=`${NCMD} uptime -p`
elif [ "${ST_ACTION}" != "report" ]; then
if ([ "${ST_ACTION}" == "report" ] && [ "${2}" == "email" ]) || [ "${ST_ACTION}" != "report" ]; then
uptime=`${NCMD} uptime -p`
echo -e "${idsCL[LightCyan]} - ${uptime} ${idsCL[LightYello]}${LH}${idsCL[Default]}"
else
echo -e "${idsCL[Default]}"
fi
echo -e "${idsCL[LightCyan]} - ${uptime} ${idsCL[LightYello]}${LH}${idsCL[Default]}"
DIVIDER false green
fi
if [ -f ${FOLDER}/${nip}.down ]; then