One of the most important duties of the system administrator is to monitor the system resources. This task should be done periodically because it reveals the system weaknesses and sometimes helps to improve the system performance.
This post describes how to gather essential system information using command-line tools.
Get aggregate CPU usage for a particular process
Memory and Swap dstat -m vmstat -a 2 ps_mem.py free -m top htop Load average dstat -l tload top htop Disks usage and I/O dstat -D total iostat -d 2 vmstat -d 2 df -h stat -f /dev/hda Network and bandwidth jnettop bmon iptraf -i all dstat -N eth0,eth1,total ifstatus Files lsof fuser -mu /dev/sda1 Related Posts:- Most useful SNMP OIDs
- Get aggregate CPU usage for a particular process
- Monitoring Linux and Windows hosts with SNMP and Cacti
- Web-based tools to monitor your servers
- Verbose Gentoo Linux installation
- Tools for managing services on Ubuntu servers
- Transfer cPanel accounts between servers with minimum downtime
