]> granicus.if.org Git - icinga2/commitdiff
db_ido: Fix modified_{host,service}_attributes columns.
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 16 Oct 2013 14:29:14 +0000 (16:29 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 16 Oct 2013 14:29:14 +0000 (16:29 +0200)
lib/db_ido/hostdbobject.cpp
lib/db_ido/servicedbobject.cpp

index 145787ec6f18de6794c70e9e4298c55f8759c521..d456ca5805ca406ed769e601e91913e54a790250 100644 (file)
@@ -172,13 +172,12 @@ Dictionary::Ptr HostDbObject::GetStatusFields(void) const
                fields->Set("failure_prediction_enabled", Empty);
                fields->Set("process_performance_data", attrs->Get("process_performance_data"));
                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("check_command", attrs->Get("check_command"));
                fields->Set("normal_check_interval", attrs->Get("check_interval"));
                fields->Set("retry_check_interval", attrs->Get("retry_interval"));
                fields->Set("check_timeperiod_object_id", service->GetCheckPeriod());
-               fields->Set("modified_attributes", attrs->Get("modified_attributes"));
        }
        else {
                fields->Set("has_been_checked", 0);
index 5bbdfc1f84b53b62865fc1ac162629b52472b821..d0ae5992169444c4a79423c5a6540b6adf0da020 100644 (file)
@@ -197,7 +197,7 @@ Dictionary::Ptr ServiceDbObject::GetStatusFields(void) const
        fields->Set("normal_check_interval", attrs->Get("check_interval"));
        fields->Set("retry_check_interval", attrs->Get("retry_interval"));
        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;
 }