Bug 237611 - net-mgmt/netdata: network traffic (system.net) always zero
Summary: net-mgmt/netdata: network traffic (system.net) always zero
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Mahdi Mokhtari
Depends on:
Reported: 2019-04-27 19:25 UTC by John Flanagan
Modified: 2019-12-05 21:05 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (mmokhi)


Note You need to log in before you can comment on or make changes to this bug.
Description John Flanagan 2019-04-27 19:25:25 UTC
Netdata version 1.13 has been broken for several months.  The aggregate overview of the key system metrics has no Net Inbound, Net Outbound, Disk Read or Used Swap data showing for the EasyPieChart widgets under the System Overview section of the default Netdata page.

Inspired by this page (https://github.com/netdata/netdata/pull/5149/files/38bccf6bc016ad665a60e0adbea777b00f195b45), I installed Netdata 1.14 in /opt, modified the DEFAULT_PHYSICAL_INTERFACES list to include vmx* network interfaces and did get net inbound and net outbound data to show.

Note that the system overview easyPieChart widgets work perfectly in versions prior to 1.13 on FreeBSD.

It also does not matter whether one is running FreeBSD 12.x or 11.x, situation is the same.
Comment 1 daniel.engberg.lists 2019-08-24 20:24:46 UTC
Please submit a bugreport to upstream and/or make a PR
Comment 2 John Flanagan 2019-08-25 21:28:40 UTC
Just checked netdata-1.15.0 on 12.0-RELEASE-p; the changes suggested here (https://github.com/netdata/netdata/pull/5149/files/38bccf6bc016ad665a60e0adbea777b00f195b45) are in play. The only thing missing is the vmx* wildcard for the vmxnet3 nic in line 147 of the collectors/freebsd.plugin/freebsd_getifaddrs.c file which when added as shown below, results in the Net Inbound and Net Outbound EasyPieCharts working as expected.

#define DEFAULT_PHYSICAL_INTERFACES "igb* ix* cxl* em* ixl* ixlv* bge* ixgbe* vtnet* vmx*"

Please note that the use of the E1000 network driver in FreeBSD is handled by the em* interface, but without the addition of the vmx* wildcard, the vmxnet3 nic will be ignored.

I would consider this ticket closed once the maintainer adds the "vmx*" wildcard to line 147 of the freebsd_getifaddrs.c file.
Comment 3 Oleksii Samorukov freebsd_committer 2019-10-15 21:45:54 UTC
I reported this issue to the upstream:

Comment 4 daniel.engberg.lists 2019-10-20 18:50:57 UTC
Fixed in 1.18.1 

Patch updating netdata to 1.18.1 can be found here:
Comment 5 daniel.engberg.lists 2019-12-04 14:50:57 UTC
1.19.0 is now in ports so this can be closed (r518840)