Use iftop to collect network bandwidth usage (#6560)

* Use iftop to collect network bandwidth usage

* fix shellcheck

* more shellchecks

* review comments
This commit is contained in:
Pankaj Garg
2019-10-26 00:06:46 -07:00
committed by Michael Vines
parent be74801236
commit e174af7838
5 changed files with 30 additions and 1 deletions

10
net/scripts/install-iftop.sh Executable file
View File

@ -0,0 +1,10 @@
#!/usr/bin/env bash
#
# Rsync setup
#
set -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
apt-get --assume-yes install iftop