diff options
-rwxr-xr-x | collectors/cgroups.plugin/cgroup-network-helper.sh | 2 |
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 4ac25cec80..6905ce638c 100755 --- a/collectors/cgroups.plugin/cgroup-network-helper.sh +++ b/collectors/cgroups.plugin/cgroup-network-helper.sh @@ -199,7 +199,7 @@ netnsid_find_all_interfaces_for_pid() { set_source "netnsid" ip link show |\ grep -B 1 -E " link-netnsid ${nsid}($| )" |\ - ip link show | grep -B 1 -E " link-netnsid ${nsid}($| )" | sed -n -e "s|^[[:space:]]*[0-9]\+:[[:space:]]\+\([A-Za-z0-9_]\+\)\(@[A-Za-z0-9_]\+\)*:[[:space:]].*$|\1|p" + sed -n -e "s|^[[:space:]]*[0-9]\+:[[:space:]]\+\([A-Za-z0-9_]\+\)\(@[A-Za-z0-9_]\+\)*:[[:space:]].*$|\1|p" } netnsid_find_all_interfaces_for_cgroup() { |