]> arthur.barton.de Git - netdata.git/commitdiff
added support for ignoring certain interfaces, just put PRIORITY=IGNORE in all.config
authorCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 22 Oct 2013 09:49:56 +0000 (12:49 +0300)
committerCosta Tsaousis (ktsaou) <costa@tsaousis.gr>
Tue, 22 Oct 2013 09:49:56 +0000 (12:49 +0300)
netdata.start

index 8962e9e2cc17c629f03ebf5401a7ab5519744af0..6a065b3757d61469534adaf5d6a555fd6dd07cfe 100755 (executable)
@@ -161,9 +161,14 @@ do
        y=`echo "$x" | tr "-" "_"`
        eval "NETDATA_TITLE_${y}=\${NETDATA_TITLE_${y}:-Live Network Usage for ${x}}"
        eval "t=\${NETDATA_TITLE_${y}}"
-       cat >>all.html <<EOF2
+       
+       eval "p=\${NETDATA_PRIORITY_${y}}"
+       if [ ! "$p" = "IGNORE" ]
+       then
+               cat >>all.html <<EOF2
                drawChart('${x}', '${x}_div', width, height, "data/${x}.json", "${t}");
 EOF2
+       fi
 done
 
 ref=4
@@ -204,7 +209,10 @@ do
        y=`echo "$x" | tr "-" "_"`
        eval "NETDATA_PRIORITY_${y}=\${NETDATA_PRIORITY_${y}:-${x}}"
        eval "t=\${NETDATA_PRIORITY_${y}}"
-       echo "${t}.${x}"
+       if [ ! "$t" = "IGNORE" ]
+       then
+               echo "${t}.${x}"
+       fi
 done >"${tmp}"
 
 for x in `cat "${tmp}" | sort`