From: Gunnar Beutner Date: Mon, 23 Apr 2012 14:51:03 +0000 (+0200) Subject: Auto-load the discovery component. X-Git-Tag: v0.0.1~595 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9e85d1efe45099cbb3c7b0d184f0add86d1a1f9d;p=icinga2 Auto-load the discovery component. --- diff --git a/icinga/Makefile.am b/icinga/Makefile.am index e500de8dc..b09174c9d 100644 --- a/icinga/Makefile.am +++ b/icinga/Makefile.am @@ -7,6 +7,8 @@ pkglib_LTLIBRARIES = \ libicinga_la_SOURCES = \ authenticationcomponent.cpp \ authenticationcomponent.h \ + discoverycomponent.cpp \ + discoverycomponent.h \ endpoint.cpp \ endpoint.h \ endpointmanager.cpp \ diff --git a/icinga/icingaapplication.cpp b/icinga/icingaapplication.cpp index 228da63cb..9a736c1ba 100644 --- a/icinga/icingaapplication.cpp +++ b/icinga/icingaapplication.cpp @@ -60,6 +60,9 @@ int IcingaApplication::Main(const vector& args) SubscriptionComponent::Ptr subscriptionComponent = make_shared(); RegisterComponent(subscriptionComponent); + DiscoveryComponent::Ptr discoveryComponent = make_shared(); + RegisterComponent(discoveryComponent); + ConfigObject::Ptr fileComponentConfig = make_shared("component", "configfile"); fileComponentConfig->SetPropertyString("configFilename", args[1]); fileComponentConfig->SetPropertyInteger("replicate", 0);