multi-aspect system monitoring
My own script: #!/bin/bash echo "Resource Usage Report" echo "=====================" # Top 3 CPU consumers echo "CPU:" ps -eo pid,comm,%cpu --sort=-%cpu | head -n 4 | awk 'NR>1 {printf "- %s: %s%%\n", $2, $3}' # Top 3 Memory consumers echo "RAM:" ps -eo pid,comm,%mem --sort=-%mem | head -n 4 | awk 'NR>1 {printf "- %s: %s%%\n", $2, $3}' # Top 3 Disk IO consumers echo "Disk:" iotop -b -n 1 | head -n 12 | grep -E '^ *[0-9]' | awk '{printf "- %s: %s%%\n", $12, $10}' | head -n 3 1. iostat (from the sysstat package) Use: Provides detailed statistics about CPU utilisation and I/O performance for devices and partitions. Why Use It: Focused on I/O bottlenecks. Breaks down performance metrics by individual devices (e.g., disks). Includes metrics like device utilisation, read/write speeds, and queue lengths. 2. iotop Use: Displays real-time I/O usage by processes. Why Use It:...