mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
arp_ less processes
This commit is contained in:
parent
2d0c82de81
commit
0d718aadc3
@ -28,7 +28,7 @@ fi
|
||||
|
||||
if [ "$1" = "suggest" ]; then
|
||||
if [ -r /proc/net/dev ]; then
|
||||
egrep '^ *(eth|wlan|ath|ra)[0-9]+(\.[0-9]+)?:' /proc/net/dev | cut -f1 -d: | sed 's/ //g' | tr '.' '_'
|
||||
awk '$1~ /^(eth|wlan|ath|ra)[0-9]+(\.[0-9]+)?/ { gsub(":", ""); gsub("\.", "_"); print $1 }' /proc/net/dev
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user