mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-25 10:28:36 +00:00
network.tc*: add the ability to detect systemd based network device names
This commit is contained in:
parent
81833d05e8
commit
f3347821e5
3 changed files with 3 additions and 7 deletions
|
@ -61,7 +61,7 @@ case "$1" in
|
|||
suggest)
|
||||
if [ -r /proc/net/dev ]; then
|
||||
awk '
|
||||
/^ *(eth|tap|bond|wlan|ath|ra|sw)[0-9]+:/ {
|
||||
/^ *(eth|tap|bond|wlan|ath|ra|sw|eno|ens|enp|wlp|wl)[0-9]*/ {
|
||||
split($0, a, /: */);
|
||||
gsub(/^ +/,"",a[1]);
|
||||
if (($2 > 0) || ($10 > 0)) print a[1]; }' /proc/net/dev
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue