]> granicus.if.org Git - icinga2/commitdiff
compatutility: Fix check_type.
authorMichael Friedrich <michael.friedrich@netways.de>
Mon, 30 Sep 2013 14:52:57 +0000 (16:52 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Mon, 30 Sep 2013 14:52:57 +0000 (16:52 +0200)
lib/icinga/compatutility.cpp

index a0a65101b8e7ad080cb3da362bbccbaf40f577c8..4cfda40e89e4dab3de533b0f27cb1158ae327140 100644 (file)
@@ -264,7 +264,7 @@ Dictionary::Ptr CompatUtility::GetServiceStatusAttributes(const Service::Ptr& se
        attr->Set("long_plugin_output", long_output);
        attr->Set("performance_data", perfdata);
        attr->Set("check_source", check_source);
-       attr->Set("check_type", (service->GetEnableActiveChecks() ? 1 : 0));
+       attr->Set("check_type", (service->GetEnableActiveChecks() ? 0 : 1));
        attr->Set("last_check", schedule_end);
        attr->Set("next_check", service->GetNextCheck());
        attr->Set("current_attempt", service->GetCurrentCheckAttempt());