2
0
Fork 0
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:
Martin Ness 2014-09-13 22:26:10 +02:00
parent 2d0c82de81
commit 0d718aadc3

View file

@ -28,7 +28,7 @@ fi
if [ "$1" = "suggest" ]; then if [ "$1" = "suggest" ]; then
if [ -r /proc/net/dev ]; 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 exit 0
else else
exit 1 exit 1