Skip to content

This is a Bash script I wrote to get a full system usage report. It shows details like CPU load, memory and disk usage, network stats, how long the system has been running, and even lists the top processes using resources. It's super handy for quickly checking how the system is performing and spotting any resource issues.

Notifications You must be signed in to change notification settings

DharshanPrakashP/ServerStats---Devops-Learning-Project01

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

System Monitoring Script

πŸ“Œ Description

This Bash script provides a comprehensive system usage report, including CPU, memory, disk, and network statistics, along with system uptime and top processes. It helps users monitor system resource utilization efficiently.

✨ Features

  • CPU Usage: Displays total CPU usage and per-core breakdown.
  • Memory Usage: Shows total, used, and free memory, along with swap usage.
  • Disk Usage: Provides an overview of disk space usage.
  • Top Processes: Lists the top 5 CPU-intensive and memory-consuming processes.
  • System Information: Includes OS details, uptime, load average, logged-in users, and failed login attempts.
  • Network Statistics: Displays network interface statistics.

πŸ“¦ Prerequisites

Ensure the following utilities are installed:

  • top
  • awk
  • mpstat (from the sysstat package)
  • free
  • df
  • ps
  • who
  • journalctl (for system logs)
  • netstat (from net-tools package)

πŸš€ Usage

  1. Make the script executable:
    chmod +x system_monitor.sh
    ./server_monitor.sh
    

project inspired from

About

This is a Bash script I wrote to get a full system usage report. It shows details like CPU load, memory and disk usage, network stats, how long the system has been running, and even lists the top processes using resources. It's super handy for quickly checking how the system is performing and spotting any resource issues.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages