-
Notifications
You must be signed in to change notification settings - Fork 164
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
Aggregate MRTG data broken in 4.6.0 #348
Comments
Temp fix:
|
this patch shouldn't be necessary - all the maxbytes figures are multipled by 1000000/8 before they are emitted to the mrtg template: If you need to multiply them explicitly by 1000 in the foil template, then that means they're stored incorrectly in the switchport table. |
@rasssta - not sure how you were getting working values with this bug... but it's fixed now and a CI test added to ensure no regressions. |
Or, I should say: I fixed the bug I found when looking at this. Not sure at all how you were getting working values with this bug in effect. I was going to guess that you had the wrong port speeds configured (e.g.. 10Mb instead of 10,000Mb) but the correct code actually uses the port speed as discovered by SNMP polls of the switch. I.e. https://github.com/inex/IXP-Manager/wiki/Updating-Switches-and-Ports-via-SNMP |
I've deployed the fix and it seems to work. Thx! :) |
Hi,
I noticed that, most of, my aggregate graphs (for switches / infras / ixp) were broken since I upgraded from 4.5 to 4.6.0. Seems like the MaxBytes value for these types are calulated with a value being 1/1000 out of what it should be. I did a diff on one of the switch aggregates from 4.5.0 and found this result:
The reason I said "most of" above is because some of my switches / infras that are running very low on usage (below 1/1000) works just fine.
When I did a manual maxbytes*1000 change on MaxBytes on my infra and ixp sections in mrtg.cfg they started to work again.
Funny thing is that customer graphs work just fine, the calculation for cust aggregates are correct for some reason.
How do I change this in a proper way?
The text was updated successfully, but these errors were encountered: