]> arthur.barton.de Git - netdata.git/blobdiff - src/main.c
added roles to receive email alarms
[netdata.git] / src / main.c
index a751e291d68c3a502861a616277a1a36c29c4295..3db28e4f81e90e5d0783fca789ca525076dcb5e7 100644 (file)
@@ -276,6 +276,7 @@ static const char *verify_required_directory(const char *dir) {
 
 int main(int argc, char **argv)
 {
+    char *hostname = "localhost";
     int i, check_config = 0;
     int config_loaded = 0;
     int dont_fork = 0;
@@ -646,6 +647,11 @@ int main(int argc, char **argv)
             info("Successfully set pthread stacksize to %zu bytes", wanted_stacksize);
     }
 
+    // ------------------------------------------------------------------------
+    // initialize rrd host
+
+    rrdhost_init(hostname);
+
     // ------------------------------------------------------------------------
     // initialize the registry