summaryrefslogtreecommitdiffstats
path: root/collectors/cgroups.plugin
diff options
context:
space:
mode:
authorIlya Mashchenko <ilya@netdata.cloud>2022-05-02 10:59:43 +0300
committerGitHub <noreply@github.com>2022-05-02 10:59:43 +0300
commitee2d762f81d478557c2fcf879bbaaa86686522fb (patch)
tree87f1f9e1399816313414ee6a7e29e6cb7e449c87 /collectors/cgroups.plugin
parentdf5efa188773103448c59ae6e25504166360041e (diff)
fix(proc/net/dev): exclude Proxmox bridge interfaces (#12789)
Diffstat (limited to 'collectors/cgroups.plugin')
-rwxr-xr-xcollectors/cgroups.plugin/cgroup-network-helper.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/cgroups.plugin/cgroup-network-helper.sh b/collectors/cgroups.plugin/cgroup-network-helper.sh
index e34ca3577a..07318d774c 100755
--- a/collectors/cgroups.plugin/cgroup-network-helper.sh
+++ b/collectors/cgroups.plugin/cgroup-network-helper.sh
@@ -219,7 +219,7 @@ netnsid_find_all_interfaces_for_cgroup() {
local c="${1}" # the cgroup path
if [ -f "${c}/cgroup.procs" ]; then
- netnsid_find_all_interfaces_for_pid "$(head -n 1 "${c}/cgroup.procs" 2 >/dev/null)"
+ netnsid_find_all_interfaces_for_pid "$(head -n 1 "${c}/cgroup.procs" 2>/dev/null)"
else
debug "Cannot find file '${c}/cgroup.procs', not searching for netnsid interfaces."
fi