Enabling "Random access" lookups for snmp_translate fixes the "MIB: Could not find all::enterprises.xxxx" error

This commit is contained in:
Robert Verspuy
2016-05-31 20:02:09 +02:00
parent 5d49f72d3e
commit b6e76f911e

View File

@ -1000,7 +1000,7 @@ function snmp_translate($oid, $module, $mibdir = null)
}
$cmd = 'snmptranslate'.mibdir($mibdir);
$cmd .= " -m $module $oid";
$cmd .= " -IR -m $module $oid";
// load all the MIBs looking for our object
$cmd .= ' 2>/dev/null';
// ignore invalid MIBs