Glances monitoring for Raspberry Pi (RPi-Monitor alternative)

Glances monitoring for Raspberry Pi (RPi-Monitor alternative)

For years I've used the RPi-Monitor app to monitor my Raspberry Pi, but like the torrent client replacement, I'm trying something new this year. I found the glances project, you can find it on GitHub:

https://nicolargo.github.io/glances/

The GUI looks like this in the terminal, and on WebUI as well:

It looks different from the other monitoring solutions, but I think it's worth a try.

Installation

  1. Install pip (Package Installer for Python)
    sudo apt install python3-pip

  2. Preinstall some packages for glances
    sudo apt-get install gcc python3-dev

  3. Install glances
    sudo pip install --user 'glances[web]'

  4. Start web interface
    sudo /root/.local/bin/glances -w

  5. Open the WebUI in your browser
    http://<IPADDRESS>:61208

  6. Create a systemd service file
    sudo nano /usr/lib/systemd/system/glances.service

  7. Put these lines into this file
    [Unit]
    Description=Glances
    After=network.target

    [Service]
    ExecStart=/root/.local/bin/glances -w
    Restart=on-abort
    RemainAfterExit=yes

    [Install]
    WantedBy=multi-user.target

  8. Start and enable the service
    sudo systemctl daemon-reload && sudo systemctl enable glances.service && sudo systemctl start glances.service

  9. That's all, done.

For more Raspberry Pi articles click here

Comments