mirror of https://github.com/Icinga/icinga2.git
db_ido: Fix modified_{host,service}_attributes columns.
This commit is contained in:
parent
a30afad4bd
commit
36c4cb0da8
|
@ -172,13 +172,12 @@ Dictionary::Ptr HostDbObject::GetStatusFields(void) const
|
||||||
fields->Set("failure_prediction_enabled", Empty);
|
fields->Set("failure_prediction_enabled", Empty);
|
||||||
fields->Set("process_performance_data", attrs->Get("process_performance_data"));
|
fields->Set("process_performance_data", attrs->Get("process_performance_data"));
|
||||||
fields->Set("obsess_over_host", Empty);
|
fields->Set("obsess_over_host", Empty);
|
||||||
fields->Set("modified_host_attributes", Empty);
|
fields->Set("modified_host_attributes", attrs->Get("modified_attributes"));
|
||||||
fields->Set("event_handler", attrs->Get("event_handler"));
|
fields->Set("event_handler", attrs->Get("event_handler"));
|
||||||
fields->Set("check_command", attrs->Get("check_command"));
|
fields->Set("check_command", attrs->Get("check_command"));
|
||||||
fields->Set("normal_check_interval", attrs->Get("check_interval"));
|
fields->Set("normal_check_interval", attrs->Get("check_interval"));
|
||||||
fields->Set("retry_check_interval", attrs->Get("retry_interval"));
|
fields->Set("retry_check_interval", attrs->Get("retry_interval"));
|
||||||
fields->Set("check_timeperiod_object_id", service->GetCheckPeriod());
|
fields->Set("check_timeperiod_object_id", service->GetCheckPeriod());
|
||||||
fields->Set("modified_attributes", attrs->Get("modified_attributes"));
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fields->Set("has_been_checked", 0);
|
fields->Set("has_been_checked", 0);
|
||||||
|
|
|
@ -197,7 +197,7 @@ Dictionary::Ptr ServiceDbObject::GetStatusFields(void) const
|
||||||
fields->Set("normal_check_interval", attrs->Get("check_interval"));
|
fields->Set("normal_check_interval", attrs->Get("check_interval"));
|
||||||
fields->Set("retry_check_interval", attrs->Get("retry_interval"));
|
fields->Set("retry_check_interval", attrs->Get("retry_interval"));
|
||||||
fields->Set("check_timeperiod_object_id", service->GetCheckPeriod());
|
fields->Set("check_timeperiod_object_id", service->GetCheckPeriod());
|
||||||
fields->Set("modified_attributes", attrs->Get("modified_attributes"));
|
fields->Set("modified_service_attributes", attrs->Get("modified_attributes"));
|
||||||
|
|
||||||
return fields;
|
return fields;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue