From 86ef8aae8c4978c4562277b745a67f333714e3b4 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Mon, 30 Sep 2013 16:52:57 +0200 Subject: [PATCH] compatutility: Fix check_type. --- lib/icinga/compatutility.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/icinga/compatutility.cpp b/lib/icinga/compatutility.cpp index a0a65101b..4cfda40e8 100644 --- a/lib/icinga/compatutility.cpp +++ b/lib/icinga/compatutility.cpp @@ -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());