Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
3.72k stars 514 forks source link

No switches are displayed when adding a Web Power Switch #4317

Open mwolter805 opened 1 year ago

mwolter805 commented 1 year ago

Describe the bug No switches are displayed when adding a Web Power Switch.

To Reproduce Steps to reproduce the behavior:

  1. add "ipkvm": true to the config.json file
  2. add new group
  3. select IP-KVM / Power device
  4. select Model, web power switch 7
  5. enter the hostname (IP address), username and password

Expected behavior Be able to view and control a web power switch.

Screenshots Screen Shot 2022-07-24 at 7 56 51 AM

Server Software:

Remote Device:

Additional context Tried this on two MeshCentral servers, both using the same docker image and neither displayed any switches. Only using MeshCentral to access vPRO desktops, and that functionality is working properly. Do not have any agents, MeshCmd or Routers installed.

There are no errors in the console logs for the docker container nor the My Events tab in MeshCentral.

The web power switch is on a different subnet than the MeshCentral server and routing to the subnet works properly as I am able to ping the web power switch from the MeshCentral docker container.

Your config.json file

{
  "settings": {
    "cert": "redacted",
    "port": 4430,
    "aliasport": 443,
    "redirport": 800,
    "tlsoffload": "127.0.0.1"
    },
  "domains": {
    "": {
      "certUrl": "https://redacted:443/",
      "agentConfig": [ "webSocketMaskOverride=1" ],
      "ipkvm": true
    }
  } 
}
Ylianst commented 1 year ago

Interesting, I will need to look at this. Once you add the web power switch, MeshCentral should query it and add 8 devices into that group, 1 for each switch.

si458 commented 1 year ago

can you maybe try creating a new docker image with the latest Node LTS 16.16.0 and meshcentral 1.0.60? OR try the new automated docker image builds? docker pull ghcr.io/ylianst/meshcentral:1.0.60

mwolter805 commented 1 year ago

@si458 tested with the image ghcr.io/ylianst/meshcentral:1.0.60 and completely wiped the MeshCentral database. Although it uses the new MeshCentral and node version, the switch ports do not appear. However, Traefik SSL offload and vPRO to the desktops appears to work correctly.

Screen Shot 2022-07-24 at 8 58 34 AM

Screen Shot 2022-07-24 at 8 57 52 AM

si458 commented 1 year ago

@mwolter805 doh sorry about that!

The image you where using is a community made one so its different to the one included with meshcentral now

Glad you have other issues fixed tho

But still weird you have this problem with the ipkvm?

I'll get @Ylianst to have a look for you

mwolter805 commented 1 year ago

@si458 no worries and vPRO and Traefik worked with the community docker image. Wanted to let you know it worked with the new image as well.

@Ylianst Thanks for looking into this. Not super critical to have the web power switch in MeshCentral, but it would be nice. Still have access to the WPS web GUI and can do everything from there until this is resolved.