@cryptotaxi247 / netdata-1 / commits / 55ce84a99

added support for ignoring certain interfaces, just put PRIORITY=IGNORE in all.config

Costa Tsaousis (ktsaou) committed Oct 22, 2013 at 12:49 UTC 55ce84a99bcb597079642b6aa9558c952a8f3c7d
1 file changed +10 -2
netdata.start
+10 -2
@@ -161,9 +161,14 @@ do
161 y=`echo "$x" | tr "-" "_"`
162 eval "NETDATA_TITLE_${y}=\${NETDATA_TITLE_${y}:-Live Network Usage for ${x}}"
163 eval "t=\${NETDATA_TITLE_${y}}"
164 - cat >>all.html <<EOF2
164 +
165 + eval "p=\${NETDATA_PRIORITY_${y}}"
166 + if [ ! "$p" = "IGNORE" ]
167 + then
168 + cat >>all.html <<EOF2
169 drawChart('${x}', '${x}_div', width, height, "data/${x}.json", "${t}");
170 EOF2
171 + fi
172 done
173
174 ref=4
@@ -204,7 +209,10 @@ do
209 y=`echo "$x" | tr "-" "_"`
210 eval "NETDATA_PRIORITY_${y}=\${NETDATA_PRIORITY_${y}:-${x}}"
211 eval "t=\${NETDATA_PRIORITY_${y}}"
207 - echo "${t}.${x}"
212 + if [ ! "$t" = "IGNORE" ]
213 + then
214 + echo "${t}.${x}"
215 + fi
216 done >"${tmp}"
217
218 for x in `cat "${tmp}" | sort`