]> granicus.if.org Git - icinga2/commitdiff
Updated test config.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 23 Apr 2012 12:06:13 +0000 (14:06 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 23 Apr 2012 12:06:13 +0000 (14:06 +0200)
components/demo/democomponent.cpp
icinga-app/icinga.conf

index 053cd3b24ada7ef5e2b2de23ccaf91fe2804a88a..31967a677fdd5a37fc2ad007b78c8a6ca9fa592c 100644 (file)
@@ -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::");
 
index 440c71715db41f5e7a833877034152548f918b5e..6af0fa60f53c666182812023422012e92fd9f825 100644 (file)
@@ -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" }
        }