Monitoring the health of servers manually can save you from memory leaks, bad resource-consuming software, attacks and downtime.
Installation commands in this tutorial assume Debian/Ubuntu distro and root access, else use
glances is, in my opinion, the best summary of the current state of your server. CPU Stats, Memory Stats, Network Stats, Disk Stats and list of top processes (sortable too) and much more!. Additionally, it has configurable warnings for the tracked stats.
You can easily install it with its auto-install script with curl or wget:
curl -L http://bit.ly/glances | /bin/bash
wget -O- http://bit.ly/glances | /bin/bash
If you have Pip:
pip install glances
I’m sure you all know
htop is top on steroids. It adds colors, bar graphs, sorting, filtering, tree visualization, customization and much more.
To install it, just run:
apt-get install htop
iotop monitors your disk I/O. It’s perfect to find out which processes are consuming your disk I/O and come to a solution.
Many distros come with
iotop installed, but if not just use the following command:
apt-get install iotop
Slow upload/download speed to/from your server? Use
iftop and check who is consuming your link! You can see the cumulative transferred bytes and peak up/down speeds on the bottom-left. You can also see the current down/up rates for the last 2, 10 and 40 seconds intervals in the bottom-right.
I suggest using the logarithmic option. Just type
L in uppercase.
Install iftop using the following command:
apt-get install iftop
Love any tool? Comment below!
I’m sure there are many more I don’t know
Need to contact me? Check https://diegorbaquero.com
Thank you for reading
Hacker Noon is how hackers start their afternoons. We’re a part of the @AMI family. We are now accepting submissions and happy to discuss advertising & sponsorship opportunities.
If you enjoyed this story, we recommend reading our latest tech stories and trending tech stories. Until next time, don’t take the realities of the world for granted!