Update nodemgmt-scripts.sh
This commit is contained in:
@@ -167,12 +167,13 @@ STATUS(){
|
|||||||
fi
|
fi
|
||||||
if [ "${checkhost}" != "false" ]; then
|
if [ "${checkhost}" != "false" ]; then
|
||||||
if [ "${ST_ACTION}" != "check" ]; 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
|
if [ "${ST_ACTION}" = "report" ] && [ "${2}" = "email" ]; then
|
||||||
uptime=`${NCMD} uptime -p`
|
uptime=`${NCMD} uptime -p`
|
||||||
elif [ "${ST_ACTION}" != "report" ]; then
|
elif [ "${ST_ACTION}" != "report" ]; then
|
||||||
uptime=`${NCMD} uptime -p`
|
uptime=`${NCMD} uptime -p`
|
||||||
fi
|
fi
|
||||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} - ${uptime} ${idsCL[LightYello]}${LH}${idsCL[Default]}"
|
echo -e"${idsCL[LightCyan]} - ${uptime} ${idsCL[LightYello]}${LH}${idsCL[Default]}"
|
||||||
DIVIDER false green
|
DIVIDER false green
|
||||||
fi
|
fi
|
||||||
if [ -f ${FOLDER}/${nip}.down ]; then
|
if [ -f ${FOLDER}/${nip}.down ]; then
|
||||||
@@ -640,8 +641,9 @@ CHECK_DOCKER_SERVICES(){
|
|||||||
fi
|
fi
|
||||||
if [ "${checkhost}" != "false" ]; then
|
if [ "${checkhost}" != "false" ]; then
|
||||||
if [ "${ST_ACTION}" != "check" ]; then
|
if [ "${ST_ACTION}" != "check" ]; then
|
||||||
|
echo -en " ${idsST[Bold]}${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}"
|
||||||
uptime=`${NCMD} uptime -p`
|
uptime=`${NCMD} uptime -p`
|
||||||
echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} - ${uptime} ${idsCL[LightYello]}${LH}${idsCL[Default]}"
|
echo -e "${idsCL[LightCyan]} - ${uptime} ${idsCL[LightYello]}${LH}${idsCL[Default]}"
|
||||||
DIVIDER false green
|
DIVIDER false green
|
||||||
fi
|
fi
|
||||||
if [ -f ${FOLDER}/${nip}.down ]; then
|
if [ -f ${FOLDER}/${nip}.down ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user