bisdn / bisdn-linux

Other
9 stars 2 forks source link

Add SNMP Polling for switch interfaces #105

Open thadrumr opened 4 months ago

thadrumr commented 4 months ago

If you install the net-snmp-server package on the switch you can poll general switch information but the switch port TAP interfaces does not pass bandwidth usage info over from the Switch ASIC. I am using a Accton 4610-54p for reference. Would there be a way of adding a SNMP extend to poll switch port usage info?

KanjiMonster commented 2 months ago

I created a ticket for exposing this information on KNET interfaces.

There is no fixed target yet when this will be implemented, but wanted to keep you up to date that we have it on the radar.

It is very unlikely to be extended for TAP interfaces, as this would require extensive changes to the kernel itself, which are also unlikely to be accepted upstream.

thadrumr commented 2 months ago

Would there be a way to do an SNMP extend to poll the Switch ASIC directly? Is that what you mean by exposing on KNET interfaces?

KanjiMonster commented 2 months ago

The stats would be exposed via standard Linux interfaces, so there should be no need for SNMP to directly poll the Switch ASIC.

The polling would happen indirectly (stats are taken from the ASIC and pushed into KNET interfaces, SNMP would poll the stats from the KNET interfaces).

thadrumr commented 2 months ago

That makes sense thanks for the update. I am using LibreNMS in my home lab so I can test this when ever its ready. Thanks for keeping this on the radar.