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:
parent
1b4b8fa2a3
commit
e3695573b3
@ -86,7 +86,7 @@ async fn check_host(check_config: &CheckConfig) -> CheckResult {
|
|||||||
match check_config.check_type {
|
match check_config.check_type {
|
||||||
Some(CheckType::Actuator) => match r.json::<ActuatorResponse>().await {
|
Some(CheckType::Actuator) => match r.json::<ActuatorResponse>().await {
|
||||||
Ok(ar) => {
|
Ok(ar) => {
|
||||||
if ar.status == "OK" {
|
if ar.status == "UP" {
|
||||||
CheckState::Up
|
CheckState::Up
|
||||||
} else {
|
} else {
|
||||||
CheckState::Warn
|
CheckState::Warn
|
||||||
|
Loading…
x
Reference in New Issue
Block a user