New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New Feature - Web Based browser function #1121
Comments
For developers, two actions to implement this new feature:
|
Thanks @nicolargo Not a developer myself unfortunately but hopefully one of the more skilled than me can get this going. I reckon it will be a popular feature for sure! |
@mrmcox You are not the first one asking this feature. I will try to implement it in the next release (aka Glances 2.11) without waiting for the code refactoring. Is @nclsHart or @notFloran available to implement the Web GUI parts ? |
@notFloran / @nclsHart : I just push a new branch (https://github.com/nicolargo/glances/tree/issue1121) with the Glances core update. The API now give the servers list:
You need to create a new page (for example index_browser.html) and display the previous list in a fancy way (have a look on http://glances.readthedocs.io/en/stable/quickstart.html#central-client). When a user click on a server on the list it should be redirected to the Glances web server page (on another tab ?). |
@notFloran Do you have some availability to work on this new feature ? |
@nicolargo I will try to do it at the beginning of next week |
@nicolargo I made a first draft of the feature if you want to test: https://github.com/notFloran/glances/tree/issue1121-webui |
@nicolargo @notFloran Hi, I have updated my glances code with your first draft, how do I now set glances and then access the browser page? |
I use the following command: You must change the args to match your needs. And the browser page is available at the following URL: http://0.0.0.0:61208/browser |
Thanks. When I run the following command "glances -w --browser" and go to the url you quoted from a browser on the local glances box I get unable to connect message. Any tips? |
No idea, I get the command from the wiki: https://github.com/nicolargo/glances/wiki/Install-and-test-Glances-DEVELOP-version#run-the-glances-develop-version |
Hi all, @notFloran your implementation should work: but i made a mistake on my side... The result returned by the API give the list of XML-RPC server, not the list of WEB Server, so when i click on the connected server (green one), i have this message: So i need to refactor my code to only provide the WEB server list and its relative stats: @notFloran Can you pull request your code to this remote branch: https://github.com/nicolargo/glances/tree/issue1121 I will try to implement my part as soon as possible (probably this week-end) and came back to you to finalise the WebUI side. |
Another issue... The current version of Glances generate the server list with both static and dynamic RPC server but not dynamic Web server. So i have to change the way the list is build and add a dynamic message (different from the RPC one) when the Web server is started. Last but not list i have to change the way that stats are updated in the web server list (replace XML RPC request by Restful API)... I know now why i postpone this enhancement, the current Glances version is not designed to implement easily this feature. Sorry but i have to postpone it in Glances 3.0. Has a workaround you can write a external peace of code to display a Glances server list and ask stats via the Restful API... @notFloran Sorry for your time but keep the code in a branch, we will reuse it in Glances 3.0. |
Ah, very sad times. I was looking forward to seeing this sooner rather than later. IT would be great for our current environment. Hopefully glaces 3.0 wont be too far off? Thanks to @nicolargo and @notFloran for all the work so far, great job guys. |
Note a sad new, just an hope for the version 3.0 (not scheduled but perhaps in beginning of 2018). |
Sorry but no time to work on this issue... Looking for a contributor to take the control of the Glances browser function. |
A little up for this feature ? |
To be able to view the glances --browser window via a web page like when using glances -w. This would allow for a central point, web based, to monitor all glances servers from a single point eg I can see all my servers from my windows desktop in a remote office via a web browser page.
Thanks
The text was updated successfully, but these errors were encountered: