From 3876a6e9b958db5f00d918970709649444b8f516 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 18:20:28 -0500 Subject: [PATCH] Update status.inc --- inc/status.inc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/inc/status.inc b/inc/status.inc index 1b2bde75..d645a7f2 100755 --- a/inc/status.inc +++ b/inc/status.inc @@ -771,7 +771,14 @@ STATUS_NODE(){ if [ ! -f ${NM_TMPFOLDER}/${nip}~${docker}.disable ] && ([ ${SDCHK} == true ] || [ ${SDCHK} == primary ]); then [ "${STATUS_ACTION}" != "check" ] && echo -en "${idsCL[White]} ${NM_DOCKER_DESC[${docker}]}$spc${idsCL[Default]}: " - if [ ! "$(${NCMD} docker ps -a -q -f name=${docker})" ] || [ "$(${NCMD} docker inspect -f {{.State.Health.Status}} ${docker} 2>/dev/null)" == "unhealthy" ]; then + docker_go=0 + if [ "$(${NCMD} docker inspect -f {{.State.Health.Status}} ${docker} 2>/dev/null)" == "healthy" ]; then + docker_go=1 + elif [ "$(${NCMD} docker inspect -f {{.State.Running}} ${docker})" == "true" ]; then + docker_go=1 + fi + + if [ ${docker_go} -eq 1 ]; then #if [ ! -f ${NM_TMPFOLDER}/${nip}~${docker}.disable ] && ([ "${nip}" = "10.2.1.5" ] || [[ "${nip}" != *"10.2."* ]] || ([[ "${nip}" = *"10.2."* ]] && [ ! -f ${PW_TMPFOLDER}/OFF-vMS-Host1.down ])); then if [ ! -f ${NM_TMPFOLDER}/${nip}~${docker}.disable ]; then