From e3695573b3203eff2d65ff6758ce2c7e1765d763 Mon Sep 17 00:00:00 2001 From: Paul-Christian Volkmer Date: Sun, 27 Nov 2022 12:03:09 +0100 Subject: [PATCH] Use 'UP' as actuator status response --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 1b0fc5e..515d2d0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -86,7 +86,7 @@ async fn check_host(check_config: &CheckConfig) -> CheckResult { match check_config.check_type { Some(CheckType::Actuator) => match r.json::().await { Ok(ar) => { - if ar.status == "OK" { + if ar.status == "UP" { CheckState::Up } else { CheckState::Warn