Nixgeek

Random Ramblings

Wed 20 May 2015

Installing Glances on Debian

Posted by Daevien in tips   

Glances is a cross-platform curses-based system monitoring tool written in Python. It shows a large amount of information such as cpu usage, memory usage, hardware monitoring, battery monitoring and much more.

Install the required dependencies:

sudo apt-get install python-dev python-jinja2 python-psutil python-setuptools hddtemp python-pip lm-sensors
sudo pip install batinfo pysensors

If you are running on actual hardware (ie: not a vps like many of my servers), you should detect the sensors for that part of the monitoring:

sudo sensors-detect

Now install the actual Glances program:

sudo pip install Glances

And finally, you can run it by simply:

sudo glances

To upgrade, you can do

pip install --upgrade glances

There are also a number of other optional dependencies you can install:

bottle (for Web server mode)

py3sensors (for hardware monitoring support) [Linux-only]

hddtemp (for HDD temperature monitoring support) [Linux-only]

batinfo (for battery monitoring support) [Linux-only]

pymdstat (for RAID support) [Linux-only]

pysnmp (for SNMP support)

zeroconf and netifaces (for the auto discoverer mode)

influxdb (for the InfluxDB export module)

statsd (for the StatsD export module)

pystache (for the action script feature)

docker-py (for the Docker monitoring support) [Linux-only]

Comments