From a25fc6cc2ec584e34c143ecdb698546aec069573 Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Fri, 21 Jun 2024 13:12:53 -0400 Subject: [PATCH] change ifstat to kilobytes instead of kilobits --- collect.sh | 3 ++- ifstat.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/collect.sh b/collect.sh index d766704..f665e73 100755 --- a/collect.sh +++ b/collect.sh @@ -18,10 +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 "minute:" +echo -n "START MINUTE COUNT:" timeout ${minutes}m gstat -C -s -d -o -p -I 60s >> gstat.csv & diff --git a/ifstat.py b/ifstat.py index 0d39a62..657f54f 100644 --- a/ifstat.py +++ b/ifstat.py @@ -5,7 +5,7 @@ import os import time # Define your shell command -command = ["ifstat", "-znq", "-b", "1", "1"] +command = ["ifstat", "-znq", "1", "1"] headerRow = [ "timestamp",