mirror of https://github.com/Icinga/icinga2.git
Updated test config.
This commit is contained in:
parent
ab0a37142a
commit
a60c7cd2a3
|
@ -15,7 +15,8 @@ string DemoComponent::GetName(void) const
|
|||
void DemoComponent::Start(void)
|
||||
{
|
||||
m_DemoEndpoint = make_shared<VirtualEndpoint>();
|
||||
m_DemoEndpoint->RegisterMethodHandler("demo::HelloWorld", bind_weak(&DemoComponent::HelloWorldRequestHAndler, shared_from_this()));
|
||||
m_DemoEndpoint->RegisterMethodHandler("demo::HelloWorld",
|
||||
bind_weak(&DemoComponent::HelloWorldRequestHAndler, shared_from_this()));
|
||||
m_DemoEndpoint->RegisterMethodSource("demo::HelloWorld");
|
||||
|
||||
EndpointManager::Ptr endpointManager = GetIcingaApplication()->GetEndpointManager();
|
||||
|
@ -42,6 +43,7 @@ void DemoComponent::Stop(void)
|
|||
|
||||
int DemoComponent::NewEndpointHandler(const NewEndpointEventArgs& neea)
|
||||
{
|
||||
/* Allow sending/receiving demo messages without authentication */
|
||||
neea.Endpoint->AddAllowedMethodSinkPrefix("demo::");
|
||||
neea.Endpoint->AddAllowedMethodSourcePrefix("demo::");
|
||||
|
||||
|
|
|
@ -6,9 +6,6 @@
|
|||
"rpclistener": {
|
||||
"kekslistener": { "replicate": "0", "port": "7777" }
|
||||
},
|
||||
"rpcconnection": {
|
||||
"keksclient": { "replicate": "0", "hostname": "localhost", "port": "7777" }
|
||||
},
|
||||
"host": {
|
||||
"localhost": { "ipaddr": "127.0.0.1" }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue