Goal of this project is to write a script to analyse server performance stats.
sudo apt update
sudo apt install bc
Type the following commands
chmod +x server-stats.sh
./server-stats.sh
If set up properly, you should be able to run the script on any Linux server and it should give you the following stats:
- Total CPU usage
- Total memory usage (Free vs Used including percentage)
- Total disk usage (Free vs Used including percentage)
- Top 5 processes by CPU usage
- Top 5 processes by memory usage