{"id":31073957,"url":"https://github.com/mghaith/server-performance-stats","last_synced_at":"2026-05-08T14:13:23.850Z","repository":{"id":314725965,"uuid":"1056544922","full_name":"MGhaith/Server-Performance-Stats","owner":"MGhaith","description":"a script that can analyse basic Linux server performance stats","archived":false,"fork":false,"pushed_at":"2025-09-14T10:25:48.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-14T12:22:31.239Z","etag":null,"topics":["bash","linux","shell-script"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MGhaith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-14T10:18:58.000Z","updated_at":"2025-09-14T10:26:32.000Z","dependencies_parsed_at":"2025-09-14T12:22:33.152Z","dependency_job_id":"6092b622-1bcc-4871-b1df-799b52378fa3","html_url":"https://github.com/MGhaith/Server-Performance-Stats","commit_stats":null,"previous_names":["mghaith/server-performance-stats"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/MGhaith/Server-Performance-Stats","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGhaith%2FServer-Performance-Stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGhaith%2FServer-Performance-Stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGhaith%2FServer-Performance-Stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGhaith%2FServer-Performance-Stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MGhaith","download_url":"https://codeload.github.com/MGhaith/Server-Performance-Stats/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MGhaith%2FServer-Performance-Stats/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275348511,"owners_count":25448626,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-16T02:00:10.229Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","linux","shell-script"],"created_at":"2025-09-16T02:01:53.939Z","updated_at":"2025-09-16T02:02:51.151Z","avatar_url":"https://github.com/MGhaith.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Server Performance Stats\n\nA lightweight, powerful Bash script for monitoring and analyzing Linux server performance metrics in real-time.\n\n## Overview\n\nServer Performance Stats is a DevOps utility designed to provide system administrators and developers with quick insights into server health and resource utilization. This tool collects and displays critical performance metrics in a clean, readable format directly in your terminal.\n\n## Features\n\n- **System Information**: Displays OS version details\n- **Resource Monitoring**:\n  - CPU usage percentage\n  - Memory utilization with percentage and free memory\n  - Disk usage statistics\n- **Process Analysis**:\n  - Top 5 CPU-consuming processes\n  - Top 5 memory-intensive processes\n- **System Status**:\n  - Server uptime\n  - Currently logged-in users\n  - Recent failed login attempts (requires sudo privileges)\n\n## Installation\n\nClone the repository to your local machine:\n\n```bash\ngit clone https://github.com/MGhaith/Server-Performance-Stats.git\ncd Server-Performance-Stats\n```\n\nMake the script executable:\n\n```bash\nchmod +x server-stats.sh\n```\n\n## Usage\n\nRun the script with:\n\n```bash\n./server-stats.sh\n```\n\nFor failed login attempts monitoring, you may need to run with sudo:\n\n```bash\nsudo ./server-stats.sh\n```\n\n## Sample Output\n```\n==================================\n      SERVER PERFORMANCE STATS    \n==================================\n\nOS VERSION:\nPRETTY_NAME=\"Arch Linux\"\n\n*CPU Usage*\nCPU Usage: 2.5%\n\n*MEMORY USAGE*\nUsed: 474 MB (6.09%), Free: 7319 MB\n\n*DISK USAGE*\nUsed: 1, Free: 955, Use%: 1%\n\nTOP 5 PROCESSES BY CPU:\n    PID COMMAND         %CPU\n    641 ps               100\n    631 server-stats.sh  8.3\n      1 systemd          0.0\n    111 systemd-udevd    0.0\n    102 systemd-resolve  0.0\n\nTOP 5 PROCESSES BY MEMORY:\n    PID COMMAND         %MEM\n    102 systemd-resolve  0.1\n      1 systemd          0.1\n     49 systemd-journal  0.1\n    248 systemd          0.1\n    129 systemd-network  0.1\n\nUPTIME:\nup 1 hour, 1 minute\n\nLOGGED IN USERS:\nroot     pts/1        Sep 15 19:14\n\nFAILED LOGIN ATTEMPTS:\n\nbtmp begins Tue Aug 19 13:58:14 2025\n\n==================================\n```\n\n## Use Cases\n\n- **Server Monitoring**: Quick health checks during routine maintenance\n- **Troubleshooting**: Identify resource bottlenecks during performance issues\n- **Capacity Planning**: Track resource utilization trends over time\n- **Security Monitoring**: Check for suspicious login attempts\n\n## Customization\n\nYou can easily modify the script to:\n- Add additional metrics\n- Change the number of processes displayed\n- Adjust formatting for better readability\n- Integrate with monitoring systems\n\n## Requirements\n\n- Linux-based operating system\n- Bash shell\n- Standard Linux utilities (top, ps, free, df, who, lastb)\n- Sudo privileges for viewing failed login attempts\n\n## Roadmap\n\n- Add network traffic monitoring\n- Implement historical data collection\n- Create visualization options\n- Add email alerting capabilities\n- Support for containerized environments\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](https://github.com/MGhaith/Server-Performance-Stats/blob/main/LICENSE) file for details.\n\n---\n\n*Note: This tool is designed for Linux servers and may not work on other operating systems.*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmghaith%2Fserver-performance-stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmghaith%2Fserver-performance-stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmghaith%2Fserver-performance-stats/lists"}