]> arthur.barton.de Git - netdata.git/commitdiff
preparation for backend databases
authorCosta Tsaousis <costa@tsaousis.gr>
Sat, 19 Nov 2016 22:45:48 +0000 (00:45 +0200)
committerCosta Tsaousis <costa@tsaousis.gr>
Sat, 19 Nov 2016 22:45:48 +0000 (00:45 +0200)
CMakeLists.txt
src/Makefile.am
src/common.h
src/main.c
src/web_server.c

index fc9252aa411fc4ac81047c4c95ce1225be53eac0..79a3cc3f17061beee76e5521456627374aff1c75 100755 (executable)
@@ -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
index 32623f436d0650505a3e5e0331b65c2c79cb5949..b3b3223acc286ef86f6398536f06bddfe9cc7e06 100644 (file)
@@ -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 \
index 58a6dbb8a5a035bfd1c06c4504e7c062bd32d898..7b95daa8ff3a70563365477b965fff03cb0027c4 100644 (file)
 #include "unit_test.h"
 
 #include "ipc.h"
+#include "backends.h"
 
 #ifdef abs
 #undef abs
index 695c98e3e84ff323a446346c692d3d538fcb7145..5fe9e636952babd54dd4fe6b1ce1c3f0af1cb659 100644 (file)
@@ -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},
index cbbe6bb4056ea1e68a95f39f03b9fe61989c153e..cf88c8691dba42c3faef2d43e39742a9f0b7e4e4 100644 (file)
@@ -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++;