Root cause: AF11X devices only support SNMPv1, IF-MIB eth0 counters return zero, and air0 32-bit counters wrap too fast for backhaul speeds. Fixes: - Use correct UBNT-AirFIBER-MIB OID indices from MIB SEQUENCE definition: .7.1 = rxOctetsOK (inbound), .6.1 = txOctetsOK (outbound) .10.1 = rxErroredFrames, .11.1 = txErroredFrames - Detect AirFiber devices by sysDescr instead of SNMP probing (v1 devices cannot return Counter64 via standard probe queries) - Force SNMPv1 for AirFiber proprietary queries - Apply proprietary counters to all real interfaces (not just eth0) Verified against live AF11X at 10.250.1.90: - IF-MIB eth0 returns zero counters - Proprietary .6.1/.7.1 show real traffic (3.75TB rx / 43TB tx) Reviewed-on: graham/towerops-web#169 |
||
|---|---|---|
| .. | ||
| mix/tasks | ||
| snmpkit | ||
| towerops | ||
| towerops_web | ||
| snmp_lib.ex | ||
| snmp_mgr.ex | ||
| snmpkit.ex | ||
| towerops.ex | ||
| towerops_native.ex | ||
| towerops_web.ex | ||