From d73684115a0018be8651e31e23e0c0734753afce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vojt=C4=9Bch=20Fo=C5=A1n=C3=A1r?= Date: Mon, 15 Jan 2024 17:18:09 +0100 Subject: [PATCH] fix #4369 - treat unhealthy docker container as down --- server/model/monitor.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/model/monitor.js b/server/model/monitor.js index 2dc77fbd3..2356b9c91 100644 --- a/server/model/monitor.js +++ b/server/model/monitor.js @@ -770,7 +770,10 @@ class Monitor extends BeanModel { let res = await axios.request(options); if (res.data.State.Running) { - if (res.data.State.Health && res.data.State.Health.Status !== "healthy") { + if (res.data.State.Health && res.data.State.Health.Status === "unhealthy") { + bean.status = DOWN; + bean.msg = res.data.State.Health.Status; + } else if (res.data.State.Health && res.data.State.Health.Status !== "healthy") { bean.status = PENDING; bean.msg = res.data.State.Health.Status; } else {