Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEW option for load MIB file #7

Open
dimitribellini opened this issue Sep 14, 2016 · 4 comments
Open

NEW option for load MIB file #7

dimitribellini opened this issue Sep 14, 2016 · 4 comments

Comments

@dimitribellini
Copy link

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

@cavaliercoder
Copy link
Collaborator

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.

@dimitribellini
Copy link
Author

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 notifications@github.com
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
#7 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AP6XPZjb5wHdQMvjhKQ6s_oCwjM_MOoEks5qriocgaJpZM4J8yNJ
.

@frankk74
Copy link

frankk74 commented Jun 7, 2017

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

@seru1us
Copy link

seru1us commented Apr 17, 2018

+1

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

surfrock66 added a commit to surfrock66/mib2zabbix that referenced this issue Dec 21, 2023
…his tool with a few quality of live improvements to support our use of building Zabbix templates. I handled the enhancement request listed here to load MIB directories or individual MIB files: zabbix-tools#7 . Additionally, I caught and fixed a template bug where non-numerical value types require a 0 trend history in the later template formats, as indicated here: https://www.zabbix.com/forum/zabbix-help/463160-6-4-0-template-import-failed-invalid-parameter-2-trends?p=463243#post463243 .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants