changed gstat, added header row, overwrite csv each time

This commit is contained in:
Marc Mance
2024-07-12 14:07:09 -04:00
parent 7254666f2b
commit 6a26a180c9

View File

@@ -18,13 +18,11 @@ echo "This script will auto uploaded data to ftp.ixsystems.com when completed."
echo "It will also copy the '*.csv' files to /var/log"
echo "Airgapped systems will need to upload the '*.csv' and/or take a debug."
echo ""
echo "If you run this script multiple times, it will append to the CSVs"
echo ""
echo "Starting ['gstat','iostat','zpool','cpu','nic'] Collection"
echo ""
echo -n "START MINUTE COUNT:"
echo "timestamp,name,q-depth,total_ops/s,read/s,read_sz-KiB,read-KiB/s,ms/read,write/s,write_sz-KiB,write-KiB/s,ms/write,delete/s,delete-sz-KiB,delete-KiB/s,ms/delete,other/s,ms/other,%busy" > gstat.csv
timeout ${minutes}m gstat -C -s -d -o -p -I 5s >> gstat.csv &
for (( i=1; i<=$minutes; i++ )); do