From 9e85d1efe45099cbb3c7b0d184f0add86d1a1f9d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 23 Apr 2012 16:51:03 +0200 Subject: [PATCH] Auto-load the discovery component. --- icinga/Makefile.am | 2 ++ icinga/icingaapplication.cpp | 3 +++ 2 files changed, 5 insertions(+) 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);