we use a montoring system to capture network traffic. the output as root user is fine:
eth0 Link encap:Ethernet HWaddr 00:1E:67:E6:D6:FE
inet addr:149.56.19.13 Bcast:149.56.19.255 Mask:255.255.255.0
inet6 addr: fe80::21e:67ff:fee6:d6fe/64 Scope:Link
inet6 addr: 2607:5300:61:40d::/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:606278 errors:0 dropped:0 overruns:0 frame:0
TX packets:269059 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:197777628 (188.6 MiB) TX bytes:19593247 (18.6 MiB)
Memory:b1200000-b127ffff
the main focus here is the line RX bytes:197777628 (188.6 MiB) TX bytes:19593247 (18.6 MiB)
The monitoring runs under a different user. when I do the ifconfig there I get the following output:
eth0 Link encap:Ethernet HWaddr 00:1E:67:E6:D6:FE
inet addr:149.56.19.13 Bcast:149.56.19.255 Mask:255.255.255.0
inet6 addr: fe80::21e:67ff:fee6:d6fe/64 Scope:Link
inet6 addr: 2607:5300:61:40d::/64 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Memory:b1200000-b127ffff
so no RX or TX ... RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) This is the first server ever that had different outputs regarding RX and TX for different users. I tested that on many machines and all are running CentOS release 6.7 (Final) but it looks like the one that changes the output is running a newer kernel version (3.14) Is there a way to change the output of ifconfig to get the RX and TX as we used to do?