From: Costa Tsaousis Date: Sat, 19 Nov 2016 22:45:48 +0000 (+0200) Subject: preparation for backend databases X-Git-Tag: v1.5.0~173^2~13 X-Git-Url: https://arthur.barton.de/gitweb/?p=netdata.git;a=commitdiff_plain;h=7a70601499e6f093413a330304a2abc89d39f597 preparation for backend databases --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fc9252aa..79a3cc3f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,8 @@ set(NETDATA_SOURCE_FILES src/appconfig.h src/avl.c src/avl.h + src/backends.c + src/backends.h src/common.c src/common.h src/daemon.c diff --git a/src/Makefile.am b/src/Makefile.am index 32623f43..b3b3223a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -29,6 +29,7 @@ plugins_PROGRAMS = apps.plugin netdata_SOURCES = \ appconfig.c appconfig.h \ avl.c avl.h \ + backends.c backends.h \ common.c common.h \ daemon.c daemon.h \ dictionary.c dictionary.h \ diff --git a/src/common.h b/src/common.h index 58a6dbb8..7b95daa8 100644 --- a/src/common.h +++ b/src/common.h @@ -130,6 +130,7 @@ #include "unit_test.h" #include "ipc.h" +#include "backends.h" #ifdef abs #undef abs diff --git a/src/main.c b/src/main.c index 695c98e3..5fe9e636 100644 --- a/src/main.c +++ b/src/main.c @@ -48,6 +48,7 @@ struct netdata_static_thread { {"proc", "plugins", "proc", 1, NULL, NULL, proc_main}, {"cgroups", "plugins", "cgroups", 1, NULL, NULL, cgroups_main}, {"check", "plugins", "checks", 0, NULL, NULL, checks_main}, + {"backends", NULL, NULL, 1, NULL, NULL, backends_main}, {"health", NULL, NULL, 1, NULL, NULL, health_main}, {"plugins.d", NULL, NULL, 1, NULL, NULL, pluginsd_main}, {"web", NULL, NULL, 1, NULL, NULL, socket_listen_main_multi_threaded}, diff --git a/src/web_server.c b/src/web_server.c index cbbe6bb4..cf88c869 100644 --- a/src/web_server.c +++ b/src/web_server.c @@ -290,7 +290,7 @@ static inline int bind_to_one(const char *definition, int default_port, int list } if (fd == -1) - error("Cannot bind to ip '%s', port %d", rip, default_port); + error("Cannot bind to ip '%s', port %d", rip, rport); else { add_listen_socket(fd, rip, rport); added++;