mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-07 05:22:35 +02:00
fix #4369 - treat unhealthy docker container as down
This commit is contained in:
parent
b4e45c7ce8
commit
d73684115a
1 changed files with 4 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue