diff --git a/components/livestatus/hoststable.cpp b/components/livestatus/hoststable.cpp index a701924ee..5504a246d 100644 --- a/components/livestatus/hoststable.cpp +++ b/components/livestatus/hoststable.cpp @@ -465,7 +465,7 @@ Value HostsTable::CheckTypeAccessor(const Value& row) if (!hc) return Value(); - return (hc->GetEnableActiveChecks() ? 1 : 0); + return (hc->GetEnableActiveChecks() ? 0 : 1); } Value HostsTable::LastStateAccessor(const Value& row) diff --git a/components/livestatus/servicestable.cpp b/components/livestatus/servicestable.cpp index c47788e84..1f506a477 100644 --- a/components/livestatus/servicestable.cpp +++ b/components/livestatus/servicestable.cpp @@ -334,7 +334,7 @@ Value ServicesTable::StateTypeAccessor(const Value& row) Value ServicesTable::CheckTypeAccessor(const Value& row) { - return (static_cast(row)->GetEnableActiveChecks() ? 1 : 0); + return (static_cast(row)->GetEnableActiveChecks() ? 0 : 1); } Value ServicesTable::AcknowledgedAccessor(const Value& row)