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

Interface - bytes recd/sent not accurate #191

Closed
celticguy42 opened this issue Sep 8, 2015 · 6 comments
Closed

Interface - bytes recd/sent not accurate #191

celticguy42 opened this issue Sep 8, 2015 · 6 comments

Comments

@celticguy42
Copy link

Using agent 1.8.1

The API address /interface/Ethernet/bytes_recv (and bytes_sent) does not appear to accurately pull data when the amount the value has changes is >4Gb on the server. I'm assuming this is a 32bit variable.

For example, get-netadapterstatistics (powershell) shows 42,215,651,613 bytes received, but the API returns 4,168,549,886 (there is about 10 seconds difference in when these numbers were read).

Is there a workaround?

@jomann09
Copy link
Contributor

jomann09 commented Oct 26, 2015

This may be able to be fixed with a 64bit version but I am not sure - we will have to check out psutil and verify that this will work... or find a workaround.

@jomann09 jomann09 added the Bug label Oct 26, 2015
@jomann09 jomann09 added this to the 1.8.2 milestone Oct 26, 2015
@jomann09
Copy link
Contributor

jomann09 commented May 8, 2016

Tested this on the 64 bit version of python and 32 bit version and still seem to have the same type of issue. I am asking the psutil dev to see if it's a problem with how the data is retrieved from windows.

@jomann09 jomann09 self-assigned this May 8, 2016
@jomann09 jomann09 removed this from the 1.8.2 milestone May 10, 2016
@jomann09
Copy link
Contributor

Asked about this issue with psutil which is by I set it to pending request:
giampaolo/psutil#816

@jomann09
Copy link
Contributor

jomann09 commented Jun 7, 2016

I've updated the psutil bug since it looks like I see why the problem is occurring. Looking into a solution to this, hopefully we will see Giampaolo look into it too.

@jomann09
Copy link
Contributor

Another update on this. The issue has been fixed although we are working on whether or not we need to adjust it for Win XP.

@jomann09
Copy link
Contributor

This will be fixed in 2.0.0 the build server for windows versions of NCPA already has the fixes for psutil in it and the latest builds work.

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

2 participants