bsnmpd HighCounters on if_lagg
Dmitriy Zamuraev
gigabyte.tmn at gmail.com
Mon Nov 16 18:05:19 UTC 2009
I have BRAS based on FreeBSD 7.2 and mpd 5.3 and three NIC's grouped into if_lagg with LACP,
I need to monitor bandwidth with bsnmpd and cacti, by default lagg interface baud rate is 10Mbitps,
so bsnmpd can't collect Counter64 on this interface.
I'm modify if_lagg.c file:
function lagg_link_state():
u_long new_baudrate;
SLIST_FORAECH(lp, &sc_ports, lp_entries)
if (lp->lp_link_state == LINK_STATE_UP)
new_baudrate += lp->lp_ifp->if_baudrate;
sc->sc_ifp->if_baudrate = new_baudrate;
So, bsnmpd shows ifHighSpeed and ifHC(In|Out)Octets. I'm happy.
Also i have if_vlan interfaces over the if_lagg, and vlan interfaces have baud rate 10Mbitps too.
I don't need Counter64 functionality on vlan interfaces, but i think develop this functionality is difficult.
Please, tell me who needs this functionality.
More information about the freebsd-net
mailing list