https://github.com/kaalpanikh/server-stats
Tool for collecting and visualizing server stats for performance monitoring.
https://github.com/kaalpanikh/server-stats
analysis bash bash-scripting metrics monitoring performance server-stats
Last synced: 2 months ago
JSON representation
Tool for collecting and visualizing server stats for performance monitoring.
- Host: GitHub
- URL: https://github.com/kaalpanikh/server-stats
- Owner: kaalpanikh
- Created: 2025-02-01T09:26:05.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-03-04T11:06:17.000Z (3 months ago)
- Last Synced: 2025-03-04T12:22:24.568Z (3 months ago)
- Topics: analysis, bash, bash-scripting, metrics, monitoring, performance, server-stats
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```bash
git clone https://github.com/kaalpanikh/server-stats.git
```2. Navigate to the project directory:
```bash
cd server-stats
```3. Make the script executable:
```bash
chmod +x ./server-stats.sh
```## Usage
Run the script with:
```bash
./server-stats.sh
```## Requirements
- Linux-based operating system
- Bash shell (version 4.0 or higher)
- Root/sudo access for certain metrics## Output Example
```plaintext
=== 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](https://roadmap.sh/projects/server-stats)