]> arthur.barton.de Git - netdata.git/blobdiff - src/proc_net_netstat.c
allow netdata to be easily relocatable
[netdata.git] / src / proc_net_netstat.c
index 37b7add1b8fdb3930534dd59eec75de9b038c9ac..2235e79b0251bb3408b84c4c62b9fff1c9e53f9d 100644 (file)
@@ -195,7 +195,7 @@ int do_proc_net_netstat(int update_every, usec_t dt) {
 
     if(unlikely(!ff)) {
         char filename[FILENAME_MAX + 1];
-        snprintfz(filename, FILENAME_MAX, "%s%s", global_host_prefix, "/proc/net/netstat");
+        snprintfz(filename, FILENAME_MAX, "%s%s", netdata_configured_host_prefix, "/proc/net/netstat");
         ff = procfile_open(config_get("plugin:proc:/proc/net/netstat", "filename to monitor", filename), " \t:", PROCFILE_FLAG_DEFAULT);
         if(unlikely(!ff)) return 1;
     }