nicolargo / glances

Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.
http://nicolargo.github.io/glances/
Other
26.44k stars 1.5k forks source link

RAID plugin not showing up in Glances web UI (Docker install) #2716

Closed javierlopeza closed 5 months ago

javierlopeza commented 5 months ago

Describe the bug I have a RAID-5 array in my Ubuntu 22.04 computer. I want to monitor it with Glances web UI. Adding the following plugin to glances.config does not take effect:

[raid]
disable=False

unused devices:

- I checked in the Glances **terminal** and the RAID info shows up as expected.
<img width="278" alt="image" src="https://github.com/nicolargo/glances/assets/11431769/d6dd8afe-1e22-4e1e-842b-53dfbdc75362">

(_By the way, huge thanks for this great project! 🌟_)

**To Reproduce**
Steps to reproduce the behavior:
1. Set content of local file `glances.conf` from this [pastebin](https://pastebin.com/x1VQRX6P) (or simply set `[raid]` plugin `disable=False`).
2. Start Glances using `docker-compose.yml` file detailed below
3. Go to http://localhost:61208
4. RAID plugin does not show up in web UI

**Expected behavior**
RAID plugin should show up in web UI

**Screenshots**
* RAID plugin does not show up
<img width="470" alt="image" src="https://github.com/nicolargo/glances/assets/11431769/d11940dd-19db-4b5f-8737-926d1ce0a2f6">

**Environment (please complete the following information)**

 - Operating System (lsb_release -a or OS name/version): 

╰─❯ lsb_release -a ─╯ No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

 - Glances & psutil versions: 

╰─❯ docker exec -it glances glances -V ─╯ Glances v3.4.0.5 with PsUtil v5.9.8 Log file: /tmp/glances-root.log

 - How do you install Glances (Pypi package, script, package manager, source):

```yml
# docker-compose.yml

services:
  glances:
    image: nicolargo/glances:ubuntu-latest-full
    container_name: glances
    pid: host
    privileged: true
    ports:
      - 61208:61208
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - ./glances.conf:/etc/glances.conf
    environment:
      - "GLANCES_OPT=-w -C /etc/glances.conf"
      - TZ=America/Los_Angeles
    restart: unless-stopped

Additional context

nicolargo commented 5 months ago

Thanks for the complete issue report.

The bug is also reproduced in the develop branch (Glances v4).

API is ok, Curse interface ok but nothing display in the WebUI.

nicolargo commented 5 months ago

Should be ok now in the develop branch.

Need test.