livestatus: fix check_type (0..active, 1..passive)

refs #4372
This commit is contained in:
Michael Friedrich 2013-07-11 11:55:32 +02:00
parent 96e1935fb4
commit f631304a23
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -334,7 +334,7 @@ Value ServicesTable::StateTypeAccessor(const Value& row)
Value ServicesTable::CheckTypeAccessor(const Value& row)
{
return (static_cast<Service::Ptr>(row)->GetEnableActiveChecks() ? 1 : 0);
return (static_cast<Service::Ptr>(row)->GetEnableActiveChecks() ? 0 : 1);
}
Value ServicesTable::AcknowledgedAccessor(const Value& row)