Skip to content

architxkumar/Server-Performance-Stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Server Performance Stats

Server Performance Stats is a bash script to analyse server performance stats like CPU, memory and storage usage.
It's built as a learning project for DevOps Roadmap on roadmap.sh.

Metrics

  • 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

Requirements

  • Bash Shell
  • Utility tools: top, bc, ps

Installation

Install the dependencies using the following command (if needed):

Debian Systems

sudo apt install bc procps

Fedora/RHEL/CentOS:

sudo dnf install procps-ng bc

macOS (Homebrew):

brew install bc

After installing dependecies, run the following:

git clone https://github.com/architxkumar/Server-Performance-Stats
cd Server-Performance-Stats
chmod u+x ./server-stats.sh  # Making the script executable

Usage

Run the script using the following command:

./server-stats.sh

Example

Screenshot of bash termianl post command usage

License

This project is licensed under the MIT License

About

A script providing basic perfomance monitoring

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages