Video Tutorial: How to monitor your server/vps resources with kSar



Hmm.... login to SSH and type top

Works like a charm ;)

To add to that, sometimes you may just want to see who is connected and how many connections they have.

Code:
netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

That will return a list from lowest connections to highest for each IP/host.
 
Hmm.... login to SSH and type top

Works like a charm ;)

TOP is fine if you just need to monitor something in real time for a short period. kSar is better because it logs everything 24/7 and gives you a ton of data. You can go back up to 30 days and pull load information for any second/minute/hour/day...