]> arthur.barton.de Git - netdata.git/blobdiff - src/proc_net_netstat.c
added ARL debugging info and errors on common pitfalls (only when -DNETDATA_INTERNAL_...
[netdata.git] / src / proc_net_netstat.c
index 8726912d27bb27d28aea3e08b1618fa575a6902e..8741a71c94fb36f9e724edb61cc2faee9e8a716c 100644 (file)
@@ -24,8 +24,8 @@ int do_proc_net_netstat(int update_every, usec_t dt) {
     static uint32_t hash_ipext = 0, hash_tcpext = 0;
     static procfile *ff = NULL;
 
-    ARL_BASE *arl_tcpext = NULL;
-    ARL_BASE *arl_ipext = NULL;
+    static ARL_BASE *arl_tcpext = NULL;
+    static ARL_BASE *arl_ipext = NULL;
 
     // --------------------------------------------------------------------
     // IPv4
@@ -112,8 +112,8 @@ int do_proc_net_netstat(int update_every, usec_t dt) {
         do_tcpext_connaborts = config_get_boolean_ondemand("plugin:proc:/proc/net/netstat", "TCP connection aborts", CONFIG_ONDEMAND_ONDEMAND);
         do_tcpext_memory     = config_get_boolean_ondemand("plugin:proc:/proc/net/netstat", "TCP memory pressures", CONFIG_ONDEMAND_ONDEMAND);
 
-        arl_ipext  = arl_create(NULL, 60);
-        arl_tcpext = arl_create(NULL, 60);
+        arl_ipext  = arl_create("netstat/ipext", NULL, 60);
+        arl_tcpext = arl_create("netstat/tcpext", NULL, 60);
 
         // --------------------------------------------------------------------
         // IPv4