Bug 433258 - Network system monitor doesn't work for network bridges
Summary: Network system monitor doesn't work for network bridges
Status: REPORTED
Alias: None
Product: ksystemstats
Classification: Frameworks and Libraries
Component: General (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
: 437840 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-02-19 16:18 UTC by Tobias Leupold
Modified: 2024-02-08 21:03 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Leupold 2021-02-19 16:18:03 UTC
Using Plasma 5.20.5 (the lastest stable) on Gentoo, Plasma's network load system monior doesn't show any traffic if using a network bridge. IIRC, in some older version, one could select the network device to be monitored. Now, only "Upload rate" and "Download rate" can be added to the chart, and it stays at 0, no matter what passes through my network bridge (eth0 and tap0).
Comment 1 apache 2021-03-19 19:34:49 UTC
I don't know if this is the same or separate bug, but my system monitor doesn't show any traffic line in network history. Before Plasma 5.21 it was working normally.

Operating System: Manjaro Linux
KDE Plasma Version: 5.21.3
KDE Frameworks Version: 5.80.0
Qt Version: 5.15.2
Kernel Version: 5.11.6-1-MANJARO
OS Type: 64-bit
Graphics Platform: X11
Comment 2 miklos 2021-04-01 13:43:59 UTC
It doesn't measure anything even if you don't have a bridge. 5.19 worked fine, 5.20 is broken. Tried with Deian Bullseye, and Fedora 33.
Comment 3 apache 2021-04-02 09:07:17 UTC
KSysGuard doesn’t show me Internet graph, while at the same time plasma-systemmonitor shows upload and download.

https://i.imgur.com/zxeCg8s.png
Comment 4 Rick Wagner 2021-04-06 19:25:22 UTC
I see this also for non-bridge devices on Plasma 5.20.5 (Fedora 33). Network monitor shows no textual or graphic transfer rates.

$ ifconfig
enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.30  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fe80::af0c:****:****:****  prefixlen 64  scopeid 0x20<link>
        ether xxxxxx  txqueuelen 1000  (Ethernet)

$ solid-hardware5 nonportableinfo '/org/kde/solid/udev/.../net/enp5s0'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:01.3/0000:02:00.2/0000:03:01.0/0000:05:00.0/net/enp5s0'
  DEVPATH = '/devices/pci0000:00/0000:00:01.3/0000:02:00.2/0000:03:01.0/0000:05:00.0/net/enp5s0'  (string)
  ID_BUS = 'pci'  (string)
  ID_MM_CANDIDATE = '1'  (string)
  ID_MODEL_FROM_DATABASE = 'I211 Gigabit Network Connection'  (string)
  ID_MODEL_ID = '0x1539'  (string)
  ID_NET_DRIVER = 'igb'  (string)
  ID_NET_LINK_FILE = '/usr/lib/systemd/network/99-default.link'  (string)
  ID_NET_NAME_MAC = 'enx7085cxxxxxx'  (string)
  ID_NET_NAME_PATH = 'enp5s0'  (string)
  ID_NET_NAMING_SCHEME = 'v245'  (string)
  ID_OUI_FROM_DATABASE = 'ASRock Incorporation'  (string)
  ID_PATH = 'pci-0000:05:00.0'  (string)
  ID_PATH_TAG = 'pci-0000_05_00_0'  (string)
  ID_PCI_CLASS_FROM_DATABASE = 'Network controller'  (string)
  ID_PCI_SUBCLASS_FROM_DATABASE = 'Ethernet controller'  (string)
  ID_VENDOR_FROM_DATABASE = 'Intel Corporation'  (string)
  ID_VENDOR_ID = '0x8086'  (string)
  IFINDEX = '2'  (string)
  INTERFACE = 'enp5s0'  (string)
  SUBSYSTEM = 'net'  (string)
  SYSTEMD_ALIAS = '/sys/subsystem/net/devices/enp5s0'  (string)
  TAGS = ':systemd:'  (string)
  USEC_INITIALIZED = '7198612'  (string)
Comment 5 Arjen Hiemstra 2021-04-29 09:28:17 UTC
 > Using Plasma 5.20.5 (the lastest stable) on Gentoo, Plasma's network load system monior doesn't show any traffic if using a network bridge. IIRC, in some older version, one could select the network device to be monitored. Now, only "Upload rate" and "Download rate" can be added to the chart, and it stays at 0, no matter what passes through my network bridge (eth0 and tap0).

Do you use network manager? If you do, we currently intentionally filter out anything that is not a physical device, because we want to exclude things like docker containers which aren't all that useful to show. That said, eth0 should still show up.

If you don't, we have a backend that uses kernel interfaces for this, but it was added with Plasma 5.21 so please make sure you are running at least that version. We also filter out any device that is not marked as "ETHER" in that backend, which may exclude bridges as well.
Comment 6 Tobias Leupold 2021-04-29 11:02:23 UTC
I don't use NetworkManager. Plasma 5.21.4 is in Portage, so I'll (try to) upgrade and check if this fixes the isse. Thanks for the Info!
Comment 7 Rick Wagner 2021-05-05 23:57:49 UTC
Yes, I use network manager. This is on Fedora 33, Plasma 5.20.5.

nmcli shows one physical (wired) connection:

$ nmcli device
DEVICE           TYPE      STATE                   CONNECTION         
enp5s0           ethernet  connected               Wired connection 1 
docker0          bridge    connected (externally)  docker0            
br-88e9fca1b449  bridge    connected (externally)  br-88e9fca1b449    
virbr0           bridge    connected (externally)  virbr0             

knemo is able to show statistics for the enp5s0 device, but Network System Monitor shows no devices.
Comment 8 Bug Janitor Service 2021-05-20 04:33:46 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 apache 2021-05-21 07:18:30 UTC
I don't use docker containers or anything unusual. Only cable modem and Manjaro desktop. I didn't change modem configuration. After Plasma update it just stopped working.
Comment 10 Arjen Hiemstra 2021-06-02 10:40:58 UTC
*** Bug 437840 has been marked as a duplicate of this bug. ***
Comment 11 Tobias Leupold 2021-06-07 21:02:02 UTC
Okay, so, although after the upgrade to Plasma 5.21.5, the start menu looks a bit spooky ;-) the issue with the network manager seems to be gone. I do get upload and download rates again for my setup with a bridge.
Comment 12 apache 2021-06-08 07:11:38 UTC
Problem still exist on Manjaro 5.21.5
Comment 13 Till Schäfer 2021-06-08 07:46:32 UTC
I think we deal with two separate issues here : 
 
a) bridge traffic is not included in device unspecific rates

b) the bridge is not selectable as network device for specific device rates
Comment 14 Tobias Leupold 2021-06-08 08:18:50 UTC
Actually, I only can select all ingoing and outgoing traffic ("Upload Rate"/"Download Rate"), not a specific device. Anyway, the traffic is shown again. Would surely be way nicer to be able to select the traffic for a very device though ...
Comment 15 apache 2021-06-14 07:36:29 UTC
It appeared that on one Manjaro installation it works ok when cable is attached to motherboard. But on other installation (the same motherboard but separate disk) regardless of where cable is attached to motherboard or PCI internet card there is no graph. But I don't know what else to check. I reinstalled ksysguard but no results. Is it a configuration issue?
Comment 16 apache 2021-06-25 09:47:27 UTC
This solution worked for me
https://bbs.archlinux.org/viewtopic.php?id=224215

Copy the default “SystemLoad2.sgrd” file from /usr/share/ksysguard/ to ~/.local/share/ksysguard/

I already had this file so I overwritten it and it works.
Comment 17 miklos 2021-06-26 23:04:35 UTC
Removing ~/.local/share/ksysguard/ did not fix the issue for me.
Comment 18 apache 2021-06-27 06:54:58 UTC
Maybe that is the problem that configuration files in ~/.local/share/ksysguard/
 are not created / updated properly when files in /usr/share/ksysguard/ are created / replaced by a new version.

@miklos
This would explain my situation when I had this file but it didn't work properly until I replaced it with a new one from /usr/share/ksysguard/

Did your system create files in ~/.local/share/ksysguard/ after you had removed old ones?

Did you try coping from /usr/share/ksysguard/
Comment 19 miklos 2021-06-27 12:44:28 UTC
@apache

The system did not create files in ~/.local/share/ksysguard/ after I removed old ones. I tried coping the stuff there from /usr/share/ksysguard/, but it didn't help.
Comment 20 Tobias Leupold 2021-06-27 19:19:29 UTC
For whatever reason, despite of 5.22.1 being installed, the monior stopped working again (maybe due to a reboot or whatever?!)

I don't even have ksysguard installed (also not when it worked in the meantime), so that should not trigger it.
Comment 21 miklos 2021-06-28 10:56:03 UTC
I upgraded to Fedora 34, and got plasma-workspace 5.22.2. The network monitor is working now, let's hope it stays that way. However, for example, Debian Bullseye is going to be released soon, and it will be stuck with plasma 5.20.5 for a very very long time.
Comment 22 miklos 2021-11-07 17:21:25 UTC
Now I upgraded my Debian machine after the Bullseye release, so I have Plasma 5.23.2 now. The network monitor doesn't work. All the other systemmonitor widgets work properly.