Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No information on Interface Statistics #152

Closed
ghost opened this issue Jan 25, 2018 · 3 comments
Closed

No information on Interface Statistics #152

ghost opened this issue Jan 25, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Jan 25, 2018

Subject of the issue

No Received or Transferred Packets/Bytes on Dashboard Interface Statistics

Your environment

  • Pi 3 Model B
  • Raspbian Stretch (relese date 2017-11-29)
  • RaspAP Quick Install
  • No Other software or services running

Steps to reproduce

  • Install using the quick method
  • Restart the pi
  • Access through the web interface, change passwords and assign static IPs to the network interfaces (eth0 and wlan0)
  • Access through ssh (from LAN) and add the firewall rules (with persistence mechanisms) and enable ip_forward
  • Restart the pi again
  • Connect via wifi: OK
  • Access the Internet: OK
  • But I do not have data traffic statistics

Note:
Installation and Configuration no more than 15 min. Great!!!

Expected behaviour

Interface Statistics session on Dashboard must be show information related to traffic.

Actual behaviour

Interface Statistics

Received Packets No Data
Received Bytes No Data

Transferred Packets No Data
Transferred Bytes No Data

@itshaadi
Copy link

i had the same issue. this could be a bug because the output of ifconfig wlan0 is this

...
        RX packets 32793  bytes 5096198 (4.8 MiB)
        RX errors 0  dropped 2  overruns 0  frame 0
        TX packets 39938  bytes 36256917 (34.5 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

and the regex for extracting this data is incorrect here is the proof and here is a way to correct this bug

@billz
Copy link
Member

billz commented Feb 11, 2018

@itshaadi thanks for doing the regex check. We transitioned to using ip rather than ifconfig in this commit and it appears we lost RX/TX stats in the process. @hjacas this is indeed a bug that we need to fix.

@heneraloysat
Copy link

heneraloysat commented Sep 7, 2018

@billz I tried adding this exec( 'ip -s link show ' . RASPI_WIFI_CLIENT_INTERFACE, $return ); under exec( 'iwconfig ' . RASPI_WIFI_CLIENT_INTERFACE, $return );
I Just can't parse the correct result
this is the output for me
image

D9ping added a commit to D9ping/raspap-webgui that referenced this issue Oct 19, 2018
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
D9ping added a commit to D9ping/raspap-webgui that referenced this issue Oct 19, 2018
Signed-off-by: D9ping <D9ping@users.noreply.github.com>
@billz billz closed this as completed Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants