#glances

2024-12-26

Any fan of #glances that want to convince me to choose it over #btop?

stevenix 🇺🇸🇧🇷stevenix@infosec.exchange
2024-11-21
2024-11-03

Run Glances at RBPI startup

If you’re reading this on fediverse and the layout is off, here’s the link to the original blog post with a nice text & pictures layout.

In my previous post, I struggled to run glances on my Raspberry Pi Zero W. After a first reboot I stared to my Home Assistant dashboard and wondered where is the data from my RaspberryPi. Of course, I ran it manually from the shell, it didn’t restart by itself.

If you ask me to tell you out of my head how to make a service/script start after a reboot, I will stare you blank.

After a bit of googling, I found out there are at least 4 different ways to do it.

Firstly, I tried to make glances to start using crontab method:

sudo crontab -e#then I added the following command to crontab:@reboot sh /<path to my glances>/glances -w

It failed, don’t know why, maybe because Raspbian doesn’t like @restart command.

Second try – rc.local:

I tinkered a bit with rc.local but I gave up quickly.

Third try – systemd – it worked!

1. Go to systemd directory

cd /etc/systemd/system

2. create a definition file for the service

sudo nano glances_w.service

3. Add the following text to glances_w.service file:

[Install]WantedBy=multi-user.target[Unit]Description=Glances Web ServerWants=network-online.targetAfter=network-online.target[Service]User=tomiGroup=admExecStart=/home/tomi/glances/bin/glances -wExecStartPre=/bin/sleep 10Type=simple[Timer]OnStartupSec=25

Change parameter User (tomi) to your user and ExecStart (/home/tomi/glances/bin/glances -w) with path to your glances start command.

4. Enable and start service

sudo systemctl enable glances_w.servicesudo systemctl start glances_w.service

5. Check the status of the service

systemctl status glances_w.service

It should give you something like:

Thanks to this forum post – now my glances start autmatically after a reboot. Of course it didn’t go smoothly as described above. I had to tinker with the User and Group parameter. I didn’t know which user should I insert. Then I didn’t know the name of the group.

So I had to find it out using:

groupsgroups tomi

The bottom line is: without forums and manuals for linux commands, I’d be completely disabled when using linux. I’m using it on and off for 30 years, but still struggling with basic commands. I wonder if I will ever climb above my current level: google-the-command-copy-paste-modify-repeat

Tags: #homeasistant #glances #raspberrypi #systemd

https://blog.rozman.info/run-glances-at-raspberry-pi-startup/

#glances #homeasistant #raspberrypi #systemd #then

2024-10-29

Monitoring RBPi with Glances & Home Assistant in 2024

If you’re reading this on fediverse and the layout is off, here’s the link to the original blog post with a nice text & pictures layout.

Few years ago (2019?) it was like:

pip install glances

And voila, I could monitor CPU, disk etc. of my Raspberry remotely via web browser (if my memory serves but it probably doesn’t).

After I started tinkering AGAIN with my Raspberry PIs after 4 years, I found out things got … complicated. Or I’m just old.

Instead of ONE step, I had to research quite a bit how to enable Glances again. Now it’s like:

  1. Create virtual environment in Python just for Glances (venv something something)
    • sorry, no command here, my RBPI crashed in between and I don’t know how to find the history of commands.
    • probably not needed
    • The official Python docs are great: you have to 1. install venv and then 2. activate it. The commands below include <path to venv> because I didn’t know that I don’t need to use the path if I activate this venv.
  2. Install Glances
    • <path to venv>/bin/pip3 install glances
  3. Run Glances in web server mode just ot find out a bunch of stuff is missing (fastapi)
    • <path to venv>/bin/glances -w
  4. Spend 1 day figuring out why ‘pip install’ is not installing just to find out I have to use pip3 (thanks forums)
    • when I used ‘pip install’, it started installing, but threw a whole bunch of weird errors. I thought something was wrong with my internet connection.
  5. Install Fastapi (web framework)
    • <path to venv>/bin/pip3 install fastapi
  6. Run Glances again to find out more of stuff is missing (uvicorn)
  7. Install Uvicorn (web server)
    • <path to venv>/bin/pip3 install uvicorn
  8. Run Glances again to find out more of stuff is missing (jinja2)
  9. Install Jinja2 (templating language)
    • <path to venv>/bin/pip3 install jinja2

But hey, not everything is bleak. I finally learnt what venv is and used it for the first time. It’s just an island with an isolated python environment. Yes, I know, I’m slow.

Glances run at <your host>: 61208 and when I access it via web browser, it looks like this:

The whole reason why I wanted to install Glances is to monitor RBPI from Home Assistant. There is a nice Glances integration that works out of the box:

Glances consume ~40% of poor RBPI Zero W CPU, which is quite a lot.

I wonder if there is a tool to monitor CPU that is not CPU intensive…

Update 1: if I don’t access it via web browser (only via Home Assistant), the CPU usage is 12%. Much better.

Next step >> make glances automatically start after a reboot

Tags: #homeasistant #glances #raspberrypi #systemd

https://blog.rozman.info/monitoring-rbpi-with-glances-home-assistant-in-2024/

#glances #homeasistant #homeassistant #raspberrypi #systemd #then

screenshot of Home Assistant with Glances integration, it shows monitoring of RBPI's cpu, disk, etc.
2024-10-09

Did you know #glances can show you info about running #docker containers? Neat! #Linux #system #admin glances.readthedocs.io/en/late

Gordo Mariomarioiceman
2024-09-20


Laptop 2008
Distro: -OS 23
Init:
WM:
Escritorio:
Terminal:
Dock:
Shell: + omz (Oh My Zsh)

Fetch --> (Personalizado)
Reloj (CLI) -->
Sys. Mon. (CLI) -->
Reproductor Audio (CLI) --->
Visuales (Espectro-CLI) --> (cli-visualizer) +
Visuales (Banner) --> + +
Sys. Mon. (Desktop GUI)-->

Mario "Gordo" G.gordomario@masto.ai
2024-09-20

#ViernesDeEscritorio #FridayDesktop #DivendresDEscriptori
Laptop 2008
Distro: #Loc-OS 23
Init: #SystemV
WM: #Marco
Escritorio: #MATE
Terminal: #Terminator
Dock: #Plank
Shell: #Zsh + omz (Oh My Zsh)

Fetch --> #fastfetch (Personalizado)
Reloj (CLI) --> #BigTime
Sys. Mon. (CLI) --> #glances
Reproductor Audio (CLI) ---> #moc
Visuales (Espectro-CLI) --> #vis (cli-visualizer) + #cava
Visuales (Banner) --> #Figlet + #lolcat + #Boxes
Sys. Mon. (Desktop GUI)--> #conky

Gordo Mariomarioiceman
2024-09-13


Laptop 2008
Distro: -OS 23
Init:
WM:
Escritorio:
Terminal:
Dock:
Shell: + omz (Oh My Zsh)

Fetch --> (Personalizado)
Reloj (CLI) -->
Sys. Mon. (CLI) -->
Reproductor Audio (CLI) --->
Visuales (Espectro-CLI) --> (cli-visualizer) +
Visuales (Banner) --> + +
Sys. Mon. (Desktop GUI)-->

Mario "Gordo" G.gordomario@masto.ai
2024-09-13

#ViernesDeEscritorio #FridayDesktop #DivendresDEscriptori
Laptop 2008
Distro: #Loc-OS 23
Init: #SystemV
WM: #Marco
Escritorio: #MATE
Terminal: #Terminator
Dock: #Plank
Shell: #Zsh + omz (Oh My Zsh)

Fetch --> #fastfetch (Personalizado)
Reloj (CLI) --> #BigTime
Sys. Mon. (CLI) --> #glances
Reproductor Audio (CLI) ---> #moc
Visuales (Espectro-CLI) --> #vis (cli-visualizer) + #cava
Visuales (Banner) --> #Figlet + #lolcat + #Boxes
Sys. Mon. (Desktop GUI)--> #conky

Mario "Gordo" G.gordomario@masto.ai
2024-09-07

#ViernesDeEscritorio #FridayDesktop #DivendresDEscriptori
Laptop 2008
Distro: #Loc-OS 23
Init: #SystemV
WM: #Marco
Escritorio: #MATE
Terminal: #Terminator
Dock: #Plank
Shell: #Zsh + omz (Oh My Zsh)

Fetch --> #fastfetch (Personalizado)
Reloj (CLI) --> #BigTime
Sys. Mon. (CLI) --> #glances
Reproductor Audio (CLI) ---> #moc
Visuales (Espectro-CLI) --> #vis (cli-visualizer) + #cava
oIM XMPP --> #prafanity
Sys. Mon. (Desktop GUI)--> #conky

Mario "Gordo" G.gordomario@masto.ai
2024-08-30

#ViernesDeEscritorio #FridayDesktop #DivendresDEscriptori
Laptop 2008
Distro: #Loc-OS 23
Init: #SystemV
WM: #Marco
Escritorio: #MATE
Terminal: #Terminator
Dock: #Plank
Shell: #Zsh + omz (Oh My Zsh)

Fetch --> #fastfetch (Personalizado)
Reloj (CLI) --> #BigTime
Sys. Mon. (CLI) --> #glances
Reproductor Audio (CLI) ---> #moc
Visuales (Espectro-CLI) --> #vis (cli-visualizer) + #cava
Sys. Mon. (Desktop GUI)--> #conky

Mario "Gordo" G.gordomario@masto.ai
2024-08-24

#ViernesDeEscritorio #FridayDesktop #DivendresDEscriptori
Laptop 2008
Distro: #Loc-OS 23
Init: #SystemV
WM: #Marco
Escritorio: #MATE
Terminal: #Terminator
Dock: #Plank
Shell: #Zsh + omz (Oh My Zsh)

Fetch --> #fastfetch (Personalizado)
Reloj (CLI) --> #BigTime
Sys. Mon. (CLI) --> #glances
Reproductor Audio (CLI) ---> #moc
Visuales (Espectro-CLI) --> #vis (cli-visualizer) + #cava
Visuales (Banner) --> #Figlet + #lolcat + #Boxes
Sys. Mon. (Desktop GUI)--> #conky

@itsfoss Glances is a cross-platform system monitoring tool written in Python.

nicolargo.github.io/glances/

#linux #glances #monitor

2024-03-19

My latest article provides a comprehensive guide to installing and configuring #UniFi Controller and #Glances on a #RaspberryPi using #Portainer. aalmada.github.io/posts/Unifi-

2024-01-13

I know #Google would never, but it'd be nice to be able to have an #Android #Discover style scroller built into the #GooglePixel home screen- but for #Mastodon in your home screen instead

If it wasn't for all of the #Glances features and actually using Discover I'd probably find a different Launcher to use but I'm very dependent on the way my phone is organized currently

HessenheldenHexangon
2023-11-18

bei 99% CPU Auslastung ist schon heftig . Ein CPU Kern hat ganz schön zu schwitzen. Wieso ist so ein Programm nicht Multithreaded?

HessenheldenHexangon
2023-11-18

Programme /Tool wie gehören in einen Werkzeugkasten einfach dazu. Das beste Tool nützt aber nichts, wenn man nicht weißt wie man es einsetzt.

HessenheldenHexangon
2023-11-18

@nyx@im-in.space

Die Darstellung in hat was. Wow!

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst