diff --git a/lib/icinga/compatutility.cpp b/lib/icinga/compatutility.cpp index c6c54b195..a5237823b 100644 --- a/lib/icinga/compatutility.cpp +++ b/lib/icinga/compatutility.cpp @@ -268,6 +268,7 @@ Dictionary::Ptr CompatUtility::GetServiceStatusAttributes(const Service::Ptr& se attr->Set("plugin_output", output); attr->Set("long_plugin_output", long_output); attr->Set("performance_data", perfdata); + attr->Set("check_type", (service->GetEnableActiveChecks() ? 1 : 0)); attr->Set("last_check", schedule_end); attr->Set("next_check", service->GetNextCheck()); attr->Set("current_attempt", service->GetCurrentCheckAttempt()); diff --git a/lib/ido/hostdbobject.cpp b/lib/ido/hostdbobject.cpp index 97baad40b..a245341aa 100644 --- a/lib/ido/hostdbobject.cpp +++ b/lib/ido/hostdbobject.cpp @@ -144,7 +144,7 @@ Dictionary::Ptr HostDbObject::GetStatusFields(void) const fields->Set("max_check_attempts", attrs->Get("max_attempts")); fields->Set("last_check", DbValue::FromTimestamp(attrs->Get("last_check"))); fields->Set("next_check", DbValue::FromTimestamp(attrs->Get("next_check"))); - fields->Set("check_type", Empty); + fields->Set("check_type", attrs->Get("check_type")); fields->Set("last_state_change", DbValue::FromTimestamp(attrs->Get("last_state_change"))); fields->Set("last_hard_state_change", DbValue::FromTimestamp(attrs->Get("last_hard_state_change"))); fields->Set("last_time_up", DbValue::FromTimestamp(attrs->Get("last_time_up"))); diff --git a/lib/ido/servicedbobject.cpp b/lib/ido/servicedbobject.cpp index 30042bca9..cba8fefca 100644 --- a/lib/ido/servicedbobject.cpp +++ b/lib/ido/servicedbobject.cpp @@ -135,7 +135,7 @@ Dictionary::Ptr ServiceDbObject::GetStatusFields(void) const fields->Set("max_check_attempts", attrs->Get("max_attempts")); fields->Set("last_check", DbValue::FromTimestamp(attrs->Get("last_check"))); fields->Set("next_check", DbValue::FromTimestamp(attrs->Get("next_check"))); - fields->Set("check_type", Empty); + fields->Set("check_type", attrs->Get("check_type")); fields->Set("last_state_change", DbValue::FromTimestamp(attrs->Get("last_state_change"))); fields->Set("last_hard_state_change", DbValue::FromTimestamp(attrs->Get("last_hard_state_change"))); fields->Set("last_time_ok", DbValue::FromTimestamp(attrs->Get("last_time_ok")));