mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-07 21:42:34 +02:00
fix #3767 by @nougad - treat empty healthcheck reported by podman as up
This commit is contained in:
parent
d73684115a
commit
7f5dfcc051
1 changed files with 4 additions and 4 deletions
|
@ -770,12 +770,12 @@ class Monitor extends BeanModel {
|
||||||
let res = await axios.request(options);
|
let res = await axios.request(options);
|
||||||
|
|
||||||
if (res.data.State.Running) {
|
if (res.data.State.Running) {
|
||||||
if (res.data.State.Health && res.data.State.Health.Status === "unhealthy") {
|
if (res.data.State.Health && ![ "healthy", "unhealthy", "" ].includes(res.data.State.Health.Status)) {
|
||||||
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.status = PENDING;
|
||||||
bean.msg = res.data.State.Health.Status;
|
bean.msg = res.data.State.Health.Status;
|
||||||
|
} else if (res.data.State.Health && res.data.State.Health.Status === "unhealthy") {
|
||||||
|
bean.status = DOWN;
|
||||||
|
bean.msg = res.data.State.Health.Status;
|
||||||
} else {
|
} else {
|
||||||
bean.status = UP;
|
bean.status = UP;
|
||||||
bean.msg = res.data.State.Health ? res.data.State.Health.Status : res.data.State.Status;
|
bean.msg = res.data.State.Health ? res.data.State.Health.Status : res.data.State.Status;
|
||||||
|
|
Loading…
Add table
Reference in a new issue