]> granicus.if.org Git - icinga2/commitdiff
Auto-load the discovery component.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 23 Apr 2012 14:51:03 +0000 (16:51 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 23 Apr 2012 14:51:03 +0000 (16:51 +0200)
icinga/Makefile.am
icinga/icingaapplication.cpp

index e500de8dc23f1988b6238a70de8b6994379849c5..b09174c9dbbd89f128a195d00198c09a98ae6a74 100644 (file)
@@ -7,6 +7,8 @@ pkglib_LTLIBRARIES =  \
 libicinga_la_SOURCES =  \
        authenticationcomponent.cpp \
        authenticationcomponent.h \
+       discoverycomponent.cpp \
+       discoverycomponent.h \
        endpoint.cpp \
        endpoint.h \
        endpointmanager.cpp \
index 228da63cb17dd69adfa97502c0911e4176280d1b..9a736c1ba9e2711e6c58d5d7d7d1f260722ab68d 100644 (file)
@@ -60,6 +60,9 @@ int IcingaApplication::Main(const vector<string>& args)
        SubscriptionComponent::Ptr subscriptionComponent = make_shared<SubscriptionComponent>();
        RegisterComponent(subscriptionComponent);
 
+       DiscoveryComponent::Ptr discoveryComponent = make_shared<DiscoveryComponent>();
+       RegisterComponent(discoveryComponent);
+
        ConfigObject::Ptr fileComponentConfig = make_shared<ConfigObject>("component", "configfile");
        fileComponentConfig->SetPropertyString("configFilename", args[1]);
        fileComponentConfig->SetPropertyInteger("replicate", 0);