]> granicus.if.org Git - icinga2/commitdiff
Remove debug code
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 13 Nov 2014 14:53:15 +0000 (15:53 +0100)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 13 Nov 2014 14:53:15 +0000 (15:53 +0100)
refs #7559

lib/hello/CMakeLists.txt
lib/hello/hello.cpp

index 2a11666c5997d41e3207d2333b21f85cc388264f..ea1244a47ee8312eeb29abe670c9c539f2f7fb44 100644 (file)
@@ -29,7 +29,7 @@ endif()
 
 add_library(hello SHARED ${hello_SOURCES})
 
-target_link_libraries(hello ${Boost_LIBRARIES} base config icinga)
+target_link_libraries(hello ${Boost_LIBRARIES} base config)
 
 set_target_properties (
   hello PROPERTIES
index 60138037321356e587f520b86c5cd0a10e71d410..1a4ba53d77fc32ce77bd19f5a74412f30a822acc 100644 (file)
@@ -39,35 +39,5 @@ int Hello::Main(void)
 {
        Log(LogInformation, "Hello", "Hello World!");
 
-       Host::Ptr host = Host::GetByName("test");
-       CheckCommand::Ptr command = host->GetCheckCommand();
-
-       Dictionary::Ptr macros = new Dictionary();
-
-       command->Execute(host, CheckResult::Ptr(), macros);
-
-       std::cout << JsonEncode(macros) << std::endl;
-
-       Host::Ptr host2 = new Host();
-       Dictionary::Ptr attrs = new Dictionary();
-
-       attrs->Set("__name", "keks");
-       attrs->Set("type", "Host");
-       attrs->Set("check_command", "http");
-       attrs->Set("command_endpoint", "test");
-
-       Deserialize(host2, attrs, false, FAConfig);
-
-       host2->SetExtension("agent_service_name", "foobar");
-
-       static_pointer_cast<DynamicObject>(host2)->OnStateLoaded();
-       static_pointer_cast<DynamicObject>(host2)->OnConfigLoaded();
-
-       std::cout << host2->GetName() << std::endl;
-
-       host2->ExecuteCheck(macros, true);
-
-       Utility::Sleep(30);
-
        return 0;
 }