]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix for mikrotik_snmp not working
authorMichael Ducharme <mducharme@gmail.com>
Wed, 2 Aug 2017 04:39:57 +0000 (23:39 -0500)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 2 Aug 2017 12:50:05 +0000 (08:50 -0400)
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.

src/main/checkrad.in

index d50101e850b6e4fc79cade32104ee9d7054574d5..c0cf440106232184228ec3d4dc79dacb21037ff8 100644 (file)
@@ -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