1
0
mirror of https://github.com/pcvolkmer/checkbar.git synced 2025-04-19 19:16:50 +00:00

Use 'UP' as actuator status response

This commit is contained in:
Paul-Christian Volkmer 2022-11-27 12:03:09 +01:00
parent 1b4b8fa2a3
commit e3695573b3

View File

@ -86,7 +86,7 @@ async fn check_host(check_config: &CheckConfig) -> CheckResult {
match check_config.check_type {
Some(CheckType::Actuator) => match r.json::<ActuatorResponse>().await {
Ok(ar) => {
if ar.status == "OK" {
if ar.status == "UP" {
CheckState::Up
} else {
CheckState::Warn