mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 21:24:41 +02:00
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)
|
void DemoComponent::Start(void)
|
||||||
{
|
{
|
||||||
m_DemoEndpoint = make_shared<VirtualEndpoint>();
|
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");
|
m_DemoEndpoint->RegisterMethodSource("demo::HelloWorld");
|
||||||
|
|
||||||
EndpointManager::Ptr endpointManager = GetIcingaApplication()->GetEndpointManager();
|
EndpointManager::Ptr endpointManager = GetIcingaApplication()->GetEndpointManager();
|
||||||
@ -42,6 +43,7 @@ void DemoComponent::Stop(void)
|
|||||||
|
|
||||||
int DemoComponent::NewEndpointHandler(const NewEndpointEventArgs& neea)
|
int DemoComponent::NewEndpointHandler(const NewEndpointEventArgs& neea)
|
||||||
{
|
{
|
||||||
|
/* Allow sending/receiving demo messages without authentication */
|
||||||
neea.Endpoint->AddAllowedMethodSinkPrefix("demo::");
|
neea.Endpoint->AddAllowedMethodSinkPrefix("demo::");
|
||||||
neea.Endpoint->AddAllowedMethodSourcePrefix("demo::");
|
neea.Endpoint->AddAllowedMethodSourcePrefix("demo::");
|
||||||
|
|
||||||
|
@ -6,9 +6,6 @@
|
|||||||
"rpclistener": {
|
"rpclistener": {
|
||||||
"kekslistener": { "replicate": "0", "port": "7777" }
|
"kekslistener": { "replicate": "0", "port": "7777" }
|
||||||
},
|
},
|
||||||
"rpcconnection": {
|
|
||||||
"keksclient": { "replicate": "0", "hostname": "localhost", "port": "7777" }
|
|
||||||
},
|
|
||||||
"host": {
|
"host": {
|
||||||
"localhost": { "ipaddr": "127.0.0.1" }
|
"localhost": { "ipaddr": "127.0.0.1" }
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user