mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-02-14 05:31:28 -05:00
fix #4369 - treat unhealthy docker container as down
This commit is contained in:
parent
b4e45c7ce8
commit
d73684115a
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user