A Shell script that monitors Linux system performance and generates detailed reports on:
- 🖥️ CPU Usage
- 🧠 Memory Usage
- 💾 Disk Usage
- 🌐 Network Activity
- 🔍 Top Processes
This tool is lightweight, easy to use, and saves reports for later analysis.
- 🖥️ CPU Monitoring: Displays the current CPU usage.
- 🧠 Memory Monitoring: Shows memory usage details.
- 💾 Disk Usage: Reports disk space usage for the root partition.
- 🌐 Network Usage: Monitors download and upload speeds.
- 🔍 Process Monitoring: Lists the top 5 processes by CPU and memory usage.
- 📂 Logging: Saves daily reports in the
logs/
directory.
-
Clone the repository:
git clone https://github.com/marwan-ahmed-23/linux-system-health-monitor.git cd linux-system-health-monitor
-
Make the script executable:
chmod +x health-monitor.sh
-
Run the script:
./health-monitor.sh
-
Check the logs:
cat logs/system_report_YYYY-MM-DD.log
linux-system-health-monitor/
├── logs/
│ └── system_report_YYYY-MM-DD.log
├── health-monitor.sh
├── README.md
├── LICENSE
└── .gitignore
- 🐚 Bash
- 🌐 ifstat command (install with
sudo apt install ifstat
)
Contributions are welcome! Feel free to:
- 🔧 Add more monitoring features.
- 🛠️ Improve the existing functionality.
- 📘 Enhance documentation.
Feel free to star ⭐ this repository if you find it helpful!