Difference between revisions of "Glances"

From SME Server
Jump to navigationJump to search
 
(6 intermediate revisions by the same user not shown)
Line 22: Line 22:
 
  pip install --upgrade bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz zeroconf netifaces pymdstat influxdb statsd pystache docker-py Glances logutils
 
  pip install --upgrade bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz zeroconf netifaces pymdstat influxdb statsd pystache docker-py Glances logutils
  
Tip : You can put this command in a cron to autoupdate Glances
+
{{Tip box|You can autoupdate [[Glances#update_glances|Glances]] by a cron}}
 
 
0 1 * * 0  pip install --upgrade bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz zeroconf netifaces pymdstat influxdb statsd pystache docker-py Glances logutils  2>&1 1>/dev/null
 
  
 
====sme8====
 
====sme8====
Line 37: Line 35:
 
connect with your browser to :
 
connect with your browser to :
 
  http://yourhost:61208
 
  http://yourhost:61208
 +
 +
===update glances===
 +
 +
do a cron file
 +
# vim /etc/cron.monthly/glances
 +
and paste
 +
pip install --upgrade bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz zeroconf netifaces pymdstat influxdb statsd pystache docker-py Glances logutils
 +
 +
each month glances will be updated
  
 
===Documentation===
 
===Documentation===

Latest revision as of 23:14, 4 October 2015

Glances

description

The purpose of this howto is to install Glances on SME Server

Glances - An eye on your system. Glances is a cross-platform curses-based system monitoring tool written in Python.

see the website for further informations

Installation

Some binaries are available from epel, but they are not up-to-date, and it could be a shame, so we will install glances with pip command line.

sme9

You have to enable epel repository first

yum install python-pip collectd-sensors gcc python-pip python-devel hddtemp --enablerepo=epel

enable sensors (answer y to all questions and reboot)

sensors-detect

then when you want to install or update, you can issue :

pip install --upgrade bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz zeroconf netifaces pymdstat influxdb statsd pystache docker-py Glances logutils


Information.png Tip:
You can autoupdate Glances by a cron


sme8

not tested on sme8, please do it

Usage

it depends what versions you have but you can issue in a terminal

glances
  • see through a browser
glances -w

connect with your browser to :

http://yourhost:61208

update glances

do a cron file

# vim /etc/cron.monthly/glances

and paste

pip install --upgrade bottle batinfo https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz zeroconf netifaces pymdstat influxdb statsd pystache docker-py Glances logutils

each month glances will be updated

Documentation

and RTFM, always.