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.
- 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.
Ensure the following utilities are installed:
topawkmpstat(from thesysstatpackage)freedfpswhojournalctl(for system logs)netstat(fromnet-toolspackage)
- Make the script executable:
chmod +x system_monitor.sh
./server_monitor.sh
- Roadmap.sh https://roadmap.sh/projects/server-stats