mib2zabbix icon indicating copy to clipboard operation
mib2zabbix copied to clipboard

NEW option for load MIB file

Open dimitribellini opened this issue 8 years ago • 4 comments

Thanks so much for great work! I can suggest to add an option to specify the MIB modules to load? Maybe you could also have the "all" option like SNMPWALK?

snmpwalk option: -m MIB[:...] load given list of MIBs (ALL loads everything) -M DIR[:...] look in given list of directories for MIBs

Thanks so much

dimitribellini avatar Sep 14 '16 13:09 dimitribellini

Great idea, thanks. For now the script uses the Net-SNMP Perl library and relies on default SNMP configuration to determine where MIBs are loaded from. You can overwrite this using the mib_api environment variables detailed here: http://www.net-snmp.org/docs/man/mib_api.html.

I'll look at adding a feature to override MIB directories using &SNMP::addMibDirs.

cavaliercoder avatar Sep 19 '16 06:09 cavaliercoder

Thank you for your good work, is a pleasure to propose new ideas and receive a good feedback :-)

On Mon, Sep 19, 2016 at 8:22 AM, Ryan Armstrong [email protected] wrote:

Great idea, thanks. For now the script uses the Net-SNMP Perl library and relies on default SNMP configuration to determine where MIBs are loaded from. You can overwrite this using the mib_api environment variables detailed here: http://www.net-snmp.org/docs/man/mib_api.html.

I'll look at adding a feature to override MIB directories using &SNMP::addMibDirs http://search.cpan.org/%7Egsm/SNMP-4.2.0/SNMP.pm.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cavaliercoder/mib2zabbix/issues/7#issuecomment-247918194, or mute the thread https://github.com/notifications/unsubscribe-auth/AP6XPZjb5wHdQMvjhKQ6s_oCwjM_MOoEks5qriocgaJpZM4J8yNJ .

dimitribellini avatar Sep 19 '16 09:09 dimitribellini

Hi, I would like to vote for this enhancement as well :-). I 'll look at the suggestion above about the env vars.

Many thanks for sharing!!!

Frank

frankk74 avatar Jun 07 '17 12:06 frankk74

+1

That would make this a total dream to be honest. Thanks for everything

seru1us avatar Apr 17 '18 18:04 seru1us