Glances

In the Proxmox web UI click on your physical server in the left pane, then click on Shell in the middle pane. Note: If you are using Proxmox VE 8.0 (based on Debian bookworm), you need to run the “rm” command below or Glances will not install. This command will not affect the operation of Proxmox VE 8.0.

rm -rf /usr/lib/python3.*/EXTERNALLY-MANAGED
 apt install glances 
curl -L https://bit.ly/glances | /bin/bash

Web browser

glances -w
glances -w --username --password
https://localhost:61208

Installing Glances auto start

Run sudo if need

 apt update

 apt install python3 -y

After that completes, we’ll install pip3 with

apt install python3-pip

Install Glances and Bottle

pip3 install bottle
pip3 install glances
glances
glances -w
Glances Web User Interface started on http://0.0.0.0:61208/

Create the Glances Service

nano /etc/systemd/system/glances.service

Add

[Unit]
Description = Glances in Web Server Mode
After = network.target

[Service]
ExecStart = /usr/local/bin/glances  -w  -t  5

[Install]
WantedBy = multi-user.target
which glances
/usr/local/bin/glances or  /home/<your usre>/.local/bin/glances 

We do the following commands to do this

systemctl enable glances.service

systemctl start glances.service

systemctl status glances

Now that it’s running, you can again go to the ip address of

http://<local ip>:61208

Adding Widgets to Dashy

cd ~/docker/dashy/public
cp conf.yml conf.bak.yml
nano conf.yml
sections:
  - name: Server Info
    widgets:
      - type: gl-current-cpu
        options:
          hostname: http:192.168.10.209:61208
      - type: gl-current-mem
        options:
          hostname: http:192.168.10.209:61208

Leave a Reply

Your email address will not be published. Required fields are marked *