Skip to content

Tool for collecting and visualizing server stats for performance monitoring.

Notifications You must be signed in to change notification settings

kaalpanikh/server-stats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Server Stats Script

A comprehensive Bash script for monitoring and analyzing server performance metrics in real-time.

Overview

This script provides system administrators and DevOps engineers with detailed insights into server performance and security metrics. It aggregates various system statistics into a single, easy-to-read output.

Features

  • System Information

    • OS Version
    • System Uptime
    • Load Average
    • Current Date and Time
  • Resource Monitoring

    • CPU Usage Statistics
    • Memory Utilization
    • Disk Space Analysis
    • Top 5 Resource-Intensive Processes
  • Security Metrics

    • Active User Sessions
    • Failed Login Attempts
    • Authentication Log Analysis

Installation

  1. Clone the repository:
git clone https://github.com/kaalpanikh/server-stats.git
  1. Navigate to the project directory:
cd server-stats
  1. Make the script executable:
chmod +x ./server-stats.sh

Usage

Run the script with:

./server-stats.sh

Requirements

  • Linux-based operating system
  • Bash shell (version 4.0 or higher)
  • Root/sudo access for certain metrics

Output Example

=== Current Date ===
Saturday, February 01, 2025, 02 PM IST

=== CPU Usage ===
Total CPU Usage: 45%

=== Memory Usage ===
Total Memory: 16384MB
Used Memory: 8192MB
Memory Usage: 50%

Project Page

For more information about server monitoring and best practices, visit roadmap.sh/projects/server-stats

About

Tool for collecting and visualizing server stats for performance monitoring.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages