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 {