Does anyone have any monitoring commands they like to use? I currently use top -s to monitor what's currently happening and occasionally sar -q to see if the server had any high loads at certain points.
Which distro are you running? (Debian, RedHat, SuSE, Ubuntu, etc...)[email protected] [~]# vnstat
bash: vnstat: command not found
[email protected] [~]# iotop
bash: iotop: command not found
By the looks of it, I won't be testing out either of them any time soon.
Don't give up so soon! It's easy to install them, e.g. if you're on fedora the package names are the same as the program names, so just find them in Add/Remove Software (or do yum install vnstat iostat).By the looks of it, I won't be testing out either of them any time soon.
• ps axru # shows running processes with extra info • ps -FC httpd # shows httpd processes with extra info • ps -eo pcpu,rss,pid,comm --sort=-rss | head # shows most ram-heavy processes • lsof /var/log/messages • lsof +d /var/log • lsof +D /var/log • lsof -c bas #info on what cmd starting with 'bas' in its name has open • lsof -p 20628 #info on what PID has open • lsof -u ryran -c fire #all ryran's procs + all fire.* procs as well • lsof -c httpd -a +D /var/www/html #all processes that have open files in /var/www/html and are named httpd.* • lsof -i #list internet files (open ports & established connections) • lsof -i tcp:ssh,80 • lsof -i tcp -a -u ryran