hleuwer / luasnmp

Lua binding to net-snmp library
http://luasnmp.luaforge.net
Other
10 stars 7 forks source link

Do not load mibs if global LUA_SNMP_MIBS is set to false #4

Closed julthomas closed 3 years ago

julthomas commented 3 years ago

Used to speed-up scripts when mibs are not needed, for instance in most Nagios plugins. The patch does not change the default behavior. Mibs won't be loaded if global LUA_SNMP_MIBS = false is set in the LUA script before the require 'snmp' line.