Koozali.org: home of the SME Server
Obsolete Releases => SME Server 9.x => Topic started by: gdh on April 17, 2015, 11:27:26 PM
-
hi,
i would like to know more about my server from time to time. i found glancer http://glances.readthedocs.org/en/latest/glances-doc.html (http://glances.readthedocs.org/en/latest/glances-doc.html) it monitors the most important values (for me)
but you have to start glances via terminal
glances -w
i think its a bit uncomfortable, so i would like to add an entry at https://{server}/server-manager
eg. another button called "glancer". if u click that button, the server will execute the cmd above and will open the link http://{server}:61208
this will show u the webinterface/monitor for glancer.
if you hit another button "stop glancer", the cmd above will be terminated.
is there already a similar solution for this?
do you have some ideas to set this up?
cheers
-
you'd read the developer manual..
AFAIK there's nothing for glances.. you'd search the contribs, maybe there's already something that can fit your needs
-
gdh
The links for Contribs & Howtos are shown at the top of these forums.
You are usually better off installing apps that have been built to work correctly with sme server as the various configuration settings, startup commands etc have already been worked out for you.
eg
smeserver-appname
rather than manually installing appname & having to configure it for yourself.
You do not tell us what information you want so we do not know which contrib or howto to recommend to you.
-
Yes Glances is a really good software, and yes it should be done as a contrib :)
You need at least
-an event to update glances each time it is invocated
-a reverse proxy if you want an url like http://IP/glances with an apache authentication (an example https://github.com/stephdl/smeserver-transmission/blob/master/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/61transmission-reverse-proxy)
-you can avoid a reverse proxy if you use directly the port in the url....http://IP:61208 but here no authentications are possible
-You need an entry in the server-manager, this is an example https://github.com/stephdl/smeserver-shellinabox/blob/master/root/etc/e-smith/web/functions/shellinabox
-Understand how build a rpm or write all your configuration files on a server and push them to a guy able to build it for you.
at least this an example of what you need to do https://github.com/stephdl/smeserver-shellinabox/tree/sme9
-
From what I saw from a glance at the website, glances is a console application, and not a web application. It would make sense to integrate that as an entry in the console menu (which you see when logging into the console as 'admin'), but not in the server-manager. You would need something like ajaxterm to be able to run glances via the server-manager.
-
'Glances -w' launch a dummy webserver reachable on a non standard port.....no need to use ajax
-
'Glances -w' launch a dummy webserver reachable on a non standard port.....no need to use ajax
Ah, OK.
Then a runit supervised service could be used to run "glances -w" bound to localhost only, and a proxy pass entry could be used in the apache configuration to allow web access via the server-manager.
-
and my first question is.. is this really usefull? :-D
-
and my first question is.. is this really usefull? :-D
yes because gdh needs it
-
Then a runit supervised service could be used to run "glances -w" bound to localhost only, and a proxy pass entry could be used in the apache configuration to allow web access via the server-manager.
Exactly :)
-
problem trying to install glances on a sme 9.2 server
followed steps - https://wiki.contribs.org/Glances
when i do:
# 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
the error i get is:
You are using pip version 7.1.0, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Collecting https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Downloading https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz
Collecting bottle
/usr/lib/python2.6/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Using cached https://files.pythonhosted.org/packages/bd/99/04dc59ced52a8261ee0f965a8968717a255ea84a36013e527944dbf3468c/bottle-0.12.13.tar.gz
Collecting batinfo
Using cached https://files.pythonhosted.org/packages/a3/51/a0a9ad2d19bb498f2779754209ca80b7ea53f948995367a2bf408b2bef7c/batinfo-0.4.2.tar.gz
Collecting zeroconf
Using cached https://files.pythonhosted.org/packages/60/1f/743dd0bb96d51912a54c074729b2a264610e73018afc1ff51da3583506b3/zeroconf-0.20.0-py2.py3-none-any.whl
Collecting netifaces
Using cached https://files.pythonhosted.org/packages/72/01/ba076082628901bca750bf53b322a8ff10c1d757dc29196a8e6082711c9d/netifaces-0.10.6.tar.gz
Collecting pymdstat
Using cached https://files.pythonhosted.org/packages/23/70/6e033dd42b832ca79c81f291460f1039e236a389d9c29443692b577c0073/pymdstat-0.4.2.tar.gz
Collecting influxdb
Using cached https://files.pythonhosted.org/packages/8d/79/7972c12e393080eda6920583c9c2ed2206771da7f6341c8971a2c02ff3d3/influxdb-5.0.0-py2.py3-none-any.whl
Collecting statsd
Using cached https://files.pythonhosted.org/packages/73/65/52e43c9489b0022b8bf531aada147e33a63e7911b1e8cb635187138910f9/statsd-3.2.2-py2.py3-none-any.whl
Collecting pystache
Using cached https://files.pythonhosted.org/packages/d6/fd/eb8c212053addd941cc90baac307c00ac246ac3fce7166b86434c6eae963/pystache-0.5.4.tar.gz
Collecting docker-py
Using cached https://files.pythonhosted.org/packages/23/c7/1fd6d4d620809fe2f323869d719e2dd0086c939b67021303a9ec40f5a05b/docker_py-1.10.6-py2.py3-none-any.whl
Collecting Glances
Using cached https://files.pythonhosted.org/packages/2c/5b/a27e4c2d2e4d64e66d9b184cb314579ac68784785af628f2b17527573082/Glances-2.11.1.tar.gz
Complete output from command python setup.py egg_info:
Glances requires at least Python 2.7 or 3.3 to run.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-S8B2AD/Glances
any ideas what i can do to install glances
-
First question is do you need it and are there other tools that do the job eg sysmon which has a contrib?
Next have you read the readme here? If you are installing software that is not a contrib you really need to do some serious reading first.
https://github.com/nicolargo/glances/blob/master/README.rst
My guess is some stuff requires a higher version of python than the default which is 2.6
Note for Python 2.6 users
Since version 2.7, Glances no longer support Python 2.6. Please upgrade to at least Python 2.7/3.3+ or downgrade to Glances 2.6.2 (latest version with Python 2.6 support).
Note for CentOS Linux 6 and 7 users
Python 2.7, 3.3 and 3.4 are now available via SCLs. See: https://lists.centos.org/pipermail/centos-announce/2015-December/021555.html.
There is info on the wiki about SCL, but it isn't necessarily straightforward and YMMV.