]> granicus.if.org Git - icinga2/commitdiff
db_ido: Add check_source.
authorMichael Friedrich <Michael.Friedrich@netways.de>
Thu, 26 Sep 2013 20:43:21 +0000 (22:43 +0200)
committerMichael Friedrich <Michael.Friedrich@netways.de>
Thu, 26 Sep 2013 20:43:21 +0000 (22:43 +0200)
lib/db_ido/hostdbobject.cpp
lib/db_ido/servicedbobject.cpp
lib/icinga/service.cpp

index 00054460e490b5abcf760b22b2ba862eaeaf798c..8cb2e408fb3e29db672d4535a4acc01d14b9809d 100644 (file)
@@ -138,6 +138,7 @@ Dictionary::Ptr HostDbObject::GetStatusFields(void) const
                fields->Set("output", attrs->Get("plugin_output"));
                fields->Set("long_output", attrs->Get("long_plugin_output"));
                fields->Set("perfdata", attrs->Get("performance_data"));
+               fields->Set("check_source", attrs->Get("check_source"));
                fields->Set("current_state", attrs->Get("current_state"));
                fields->Set("has_been_checked", attrs->Get("has_been_checked"));
                fields->Set("should_be_scheduled", attrs->Get("should_be_scheduled"));
index 6164cb7f76fd879437c153d8dbe58c557378322a..16267276a990f4fb58c402ab0b020f38729d5372 100644 (file)
@@ -149,6 +149,7 @@ Dictionary::Ptr ServiceDbObject::GetStatusFields(void) const
        fields->Set("output", attrs->Get("plugin_output"));
        fields->Set("long_output", attrs->Get("long_plugin_output"));
        fields->Set("perfdata", attrs->Get("performance_data"));
+       fields->Set("check_source", attrs->Get("check_source"));
        fields->Set("current_state", attrs->Get("current_state"));
        fields->Set("has_been_checked", attrs->Get("has_been_checked"));
        fields->Set("should_be_scheduled", attrs->Get("should_be_scheduled"));
index 7dcb94cfe3e153759dc40b4e181e301bb0e06ea4..ac54517551d8e1ff157f41698ebc840fadb27695 100644 (file)
@@ -336,7 +336,7 @@ void Service::SetCheckResultAuthority(const String& authority)
 String Service::GetCheckResultAuthority(void) const
 {
        if (m_CheckResultAuthority.IsEmpty())
-               return "(local)";
+               return "(i2 local)";
        else
                return m_CheckResultAuthority;
 }