mirror of https://github.com/Icinga/icinga2.git
parent
c34540676e
commit
d562e98779
|
@ -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());
|
||||
|
|
|
@ -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")));
|
||||
|
|
|
@ -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")));
|
||||
|
|
Loading…
Reference in New Issue