mirror of https://github.com/Icinga/icinga2.git
Auto-load the discovery component.
This commit is contained in:
parent
885f1834f1
commit
9e85d1efe4
|
@ -7,6 +7,8 @@ pkglib_LTLIBRARIES = \
|
|||
libicinga_la_SOURCES = \
|
||||
authenticationcomponent.cpp \
|
||||
authenticationcomponent.h \
|
||||
discoverycomponent.cpp \
|
||||
discoverycomponent.h \
|
||||
endpoint.cpp \
|
||||
endpoint.h \
|
||||
endpointmanager.cpp \
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue