Skip to content

tubtab11/Server-Performance-Stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Server Performance Stats

server-stats.sh is a lightweight Bash script to analyze basic server performance stats.
It works on Linux and macOS using only built-in tools—no extra dependencies.


Features

  • OS / Host Info
    • OS version, kernel, hostname
    • Uptime & boot time
    • Load averages
    • Logged-in users
  • CPU Usage
    • Total CPU utilization (sampled over 1 second)
  • Memory Usage
    • Free vs Used, including percentage
    • Human-readable units (MB/GB)
  • Disk Usage
    • Aggregated across all real filesystems
    • Free vs Used, including percentage
  • Top Processes
    • Top 5 by CPU
    • Top 5 by Memory
  • Stretch Goal (Optional)
    • Failed login attempts (Linux: via lastb; macOS: log command hint)

Installation

Clone or copy the script:

git clone https://github.com/yourusername/Server-Performance-Stats.git
cd Server-Performance-Stats
chmod +x server-stats.sh

## Project Source

This project is part of the [Server Performance Stats project on roadmap.sh](https://roadmap.sh/projects/server-stats)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages