Skip to content
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

Run "browser" mode in a WebUI #2940

Closed
hyharry opened this issue Sep 14, 2024 · 4 comments
Closed

Run "browser" mode in a WebUI #2940

hyharry opened this issue Sep 14, 2024 · 4 comments

Comments

@hyharry
Copy link

hyharry commented Sep 14, 2024

user scenario
i have a bunch of servers to monitor, and glances --browser mode is very handy to get an overview of them in terminal. could i start the monitoring via glances --browser on a machine and then view then with a web browser (knowing the ip address and port of my glances --browser), i.e. a combination of browse + webserver mode.

basically, i would like to do

on host 1, glances -s
on host 2, glances -s
on host 3, glances --browser -w (knowing the serverlist via a glances.conf)
on host 4, on a web browser i can do host3:61208 then view my list of servers.

it seems not implemented yet. Would you add this functionality? Or someone has already faced the same issue and tried to solve it?

Thanks for your help.

@hyharry
Copy link
Author

hyharry commented Sep 14, 2024

by looking into your discussion #2292 and your issue #995 I guess this can be only done by some customizing with glances REST api instead of easy command line options. is it correct?

@nicolargo
Copy link
Owner

For the moment, it is not possible, but the feature request is interresting.

@nicolargo nicolargo changed the title is browser + webserver mode there to use? Run "browser" mode in a WebUI Sep 16, 2024
@nicolargo nicolargo added this to the Glances 4.3.0 milestone Oct 31, 2024
@nicolargo
Copy link
Owner

Additional information to take into account before the developement.

  1. On hosts, servers should be run with glances -w
  2. The Web browser client should be ran with glances --browser -w
  3. The Web browser client should detect clients on the same LAN (thanks to zeroconf, like it is already done in --browser XMLRPC client/server mode)
  4. The Web browser client should read server list from the configuration file (adapt existing serverlist section)
  5. When the Web browser client start, it should display a list of server with basic stats (configurable in the configuration file columns option in the severlist section
  6. When user click on a server, it should redirect to the WebUI of the server.
  7. In the WebUI a link should be available to return to the server list

@nicolargo
Copy link
Owner

I close this issue because the subject is already covered by #1121

@nicolargo nicolargo removed this from the Glances 4.3.0 milestone Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants