Skip to content

Commit

Permalink
Fix for mikrotik_snmp not working
Browse files Browse the repository at this point in the history
If the interface table is above a certain size, MikroTik does not show the ppp interfaces in the interfae table, but they are always in the mtxrInterfaceStatsName in MIKROTIK-MIB. Simply switching to that fixes the problem and should not break compatibility for current users.
  • Loading branch information
mjducharme authored and arr2036 committed Aug 2, 2017
1 parent 1625c2d commit 207126e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/checkrad.in
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,8 @@ sub mikrotik_snmp {
}
}

# We want interface descriptions
$oid = "ifDescr";
# We want mtxrInterfaceStatsName from MIKROTIK-MIB
$oid = "1.3.6.1.4.1.14988.1.1.14.1.1.2";

# Mikrotik doesnt give port IDs correctly to RADIUS :(
# practically this would limit us to a simple only-one user limit for
Expand Down

0 comments on commit 207126e

Please sign in to comment.