Realtime stats do not work on guest dashboard using link.cgi

SYSTEM INFORMATION - HOST
OS type and version CentOS Linux 7.9.2009 EOL REACHED
Webmin version 2.202
Cloudmin version 9.7 Pro
Theme version 21.20.7
Package updates All installed packages are up to date
SYSTEM INFORMATION - GUEST
OS type and version Rocky Linux 9.4
Usermin version 2.102
Virtualmin version 7.20.2 Pro
Theme version 21.20.7
Apache version 2.4.57
Package updates All installed packages are up to date

Not sure why, but the system info copy function is missing Webmin version - in this case the guest is running 2.202.

The request is made on load, but it appears to make erratic requests after the first couple:

GET /servers/link.cgi/1706112512341730/xhr.cgi?xhr-info=1 HTTP/1
Host: example.com:10000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0
Accept: application/json, text/javascript, */*; q=0.01
Accept-Language: en-GB,en;q=0.5
Accept-Encoding: gzip, deflate, br, zstd
x-no-links: 1
x-client-paginate: 22
x-client-paginate-no-script: 1
x-color-palette-file: quote-dark
X-Requested-With: XMLHttpRequest
DNT: 1
Connection: keep-alive
Referer: https://example.com:10000/servers/link.cgi/1706112512341730/sysinfo.cgi?mod=virtual-server&xnavigation=1
Cookie: _ga_N4MYRYRHPV=GS1.2.1689683692.2.1.1689683780.49.0.0; _ga=GA1.2.276204353.1689255163; redirect=1; testing=1; sid=51572929a628af2cbcacd140b1247a30
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

Hello,

Thanks for the heads up!

This is expected, as we don’t support proxying WebSockets — at least not yet!

@Jamie, how hard would it be to make it work?

There’s a discussion about this, somewhere, maybe github with regard to Terminal, that Jamie already chimed in on. It’s non-trivial, and I don’t think it’s on the near-term todo list. link.cgi is a pretty rudimentary process, it’s one-and-done, that feature would need a refactor to work quite differently to handle a long-running connection.

It should probably be made clear when features can’t work cross-server with link.cgi, so folks aren’t surprised by it or expect it to work.

can it fall back to the ‘old’ way please?

Well, I got this feature to work, but without dynamic updates. It will display the data, but a user will need to refresh the page to see updates:

It’s better than disabling it completely.

Sadly, no, as it’s a fairly complicated feature.

So this is an compatibility issue between Cloudmin and Virtualmin that results in confusion for users. My vote would be to disable it if in ‘link’ mode through Cloudmin.

Why would you want to disable it? It still provides accurate data about the collected stats for the past 20 minutes.

It may not update live, but that doesn’t make it any less valuable, right?

The real time stats are valuable yes, but that functionality has been removed if you use Cloudmin this way, so if the ‘old’ way is gone completely, I’d rather remove it to prevent confusion (“my stats are frozen, etc etc”) and if clients want it, use a public IP and set the server up with a domain name. Or just use terminal :slightly_smiling_face:

Yes, it’s frozen but can still provide valuable information!

I’m sorry! I’m in two minds about removing it …

Referring back to my initial post, on certain servers (I’ve not verified the stats on other servers, I assume they update), I’m not seeing any stats, for example:

SYSTEM INFORMATION
OS type and version Redhat Enterprise Linux 8.10
Usermin version 2.102
Virtualmin version 7.20.2
Theme version 21.20.7
Apache version 2.4.37
Package updates 6 package updates are available, of which 6 are security updates

Well, in this case, it could be hidden, that’s true!