This script collects various performance metrics of a server and saves them to a CSV file. It formats incoming and outgoing traffic data into human-readable format (KB, MB, GB, TB).
-
Clone the repository:
git clone https://github.com/your-username/server-performance-metrics.git
-
Change directory to the script folder:
cd server-performance-metrics
- Run the script:
./server_performance.sh
- View the performance data:
cat /var/log/performance_$(date +"%Y-%m-%d").txt | column -s, -t