-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[widget] Top Devices #13748
[widget] Top Devices #13748
Conversation
Hi @Npeca75 |
hi @PipoCanaja |
to be more specific, ports which are DOWN are left "as is" in DB with last data, so they are never zeroed out |
Do you use "per port polling" by any chance ? |
no, nothing like that :) |
@PipoCanaja After looking at the code it seems that the widget just sums ingress and egress bits from all available interfaces. If there was a port with massive amounts of data transferred and that port went down for any reason, looking at the sum itself would skew the result if other ports would not compensate, right? The device would still be listed as the top device even when it would not pass much traffic at all. I think the calculation should only sum the ports that were up during the last poll or were up during the last n-minutes. This is for the real time view. |
All right, merged. Thanx for your new contribution @Npeca75 |
This pull request has been mentioned on LibreNMS Community. There might be relevant details there: |
This pull request has been mentioned on LibreNMS Community. There might be relevant details there: |
calculate bitrate only from ports which are UP
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926
After you are done testing, you can remove the changes with
./scripts/github-remove
. If there are schema changes, you can ask on discord how to revert.