diff --git a/collect.sh b/collect.sh index 7bccbed..d766704 100755 --- a/collect.sh +++ b/collect.sh @@ -23,9 +23,11 @@ echo "Starting ['gstat','iostat','zpool','cpu','nic'] Collection" echo "" echo -n "minute:" + +timeout ${minutes}m gstat -C -s -d -o -p -I 60s >> gstat.csv & + for (( i=1; i<=$minutes; i++ )); do - timeout 2s gstat -C -s -d -o -p -I 60s >> gstat.csv & python3 zpooliostat.py python3 iostat.py python3 topstat.py