From: Michael Friedrich Date: Thu, 11 Jul 2013 09:55:32 +0000 (+0200) Subject: livestatus: fix check_type (0..active, 1..passive) X-Git-Tag: v0.0.3~861 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f631304a2377435949d817fa62f789814e11848d;p=icinga2 livestatus: fix check_type (0..active, 1..passive) refs #4372 --- 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)