Replies: 4 comments 1 reply
-
@lycheeEng
Central client would work with all server devices that can be reached (through the network) from your client device. By the way, you seems to have used different keys than those specified in the docs.
|
Beta Was this translation helpful? Give feedback.
-
@RazCrimson Thank you for your help. Let me show my circumstances. My server1 ip is 1.1.1.1 and I connect to glances use domain server1.example.com (cloudflare proxied), [serverlist] I run glances in my server use command Then I tested it in my computer using log:
|
Beta Was this translation helpful? Give feedback.
-
What are the versions of both the client and the server? Also I assume you have Caddy setup properly to passthrough the tcp connection transparently? |
Beta Was this translation helpful? Give feedback.
-
@lycheeEng
If you are using the Web API mode, then Glances Client Browser mode is currently incompatible with that. Glances Web API/UI mode ( Caddy is a HTTP reverse proxy, so it expects HTTP connections rather than XML-RPC connections. So if you want the XML-RPC client to work you need to make caddy expose the underlying TCP socket for glances rather than it acting as a reverse proxy. I am not sure how to do that. Something that might help you with that, in case you are interested: https://caddyserver.com/docs/modules/layer4 P.S. I'll close the discussion since you have another working solution. |
Beta Was this translation helpful? Give feedback.
-
In the docs, it said that
serverlist
usezeroconf protocol
, so is Central client for local network only?I have multiple remote servers, I just want to show a brief information about these servers. These servers ip address like 1.1.1.1 and 2.2.2.2, and I want add it into the configure file like this:
[serverlist]
server_1_name=server1
server_1_ip=1.1.1.1
server_1_port=61209
server_1_username=glances
server_1_password=glances
server_2_name=server2
server_2_ip=2.2.2.2
server_2_port=61210
server_2_username=glances
server_2_password=glances
Then I can run
glances -w --browser
in my computer to see all servers status in one web page.Beta Was this translation helpful? Give feedback.
All reactions