I recently feel very concerned about the performance of my server….does any process eat all my CPUs? What is the current bandwidth usage, how about the temperature of this one (Summer time!!), any heavy I/O on my disks? etc…
Yesterday I wrote an article on eZ Server Monitoring (eSM), a web dashboard to monitor your server. Although I’m a big fan of its simple design with some very useful information that I don’t check often (Services status monitoring, ping, last login, etc…), eSM lacks some other interesting information such as the disks I/O, network bandwidth rate, but also the temperatures, so I’ve decided to give a try to another alternative, recently released, Glances in its version 2.
Written in Python and under LGPL licence, Glances helps you to identify the performance issues of your server through consolidating several indicators and information such as the load, the CPU usage per type (Nice, system, user, …), the memory information (used, free, buffer, …), the swap, the network bandwidth rate, the disk I/O, the file system’s available space, the temperatures from your sensors and the top processes.
Glances can either be access through CLI or a web interface, we will focus on this part.
1) Install Python-dev and pip if not done yet + lmsensors to monitor server’s temperatures
As being based on Python, you will need few prerequisites, in root (Or with sudo) simply run:
apt-get install -y python-dev python-pip lm-sensors
2) Install Glances using Pipy (Python package manager)
pip install glances pysnmp bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz
This will install glances with all the required dependencies
3) Start the web interface
and access to the web interface through http://YOURIP:61208
If you want to modify the color thresholds (Green, Orange and Red), you can simply edit the conf file /etc/glances/glances.conf.