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

./mib2zabbix.pl: No such file or directory #10

Closed
natalysheinin opened this issue Apr 11, 2017 · 1 comment
Closed

./mib2zabbix.pl: No such file or directory #10

natalysheinin opened this issue Apr 11, 2017 · 1 comment

Comments

@natalysheinin
Copy link

I am runing this command:
./mib2zabbix.pl -o MY_FILE.my

2 comments, when I run the same script without the .pl extension it gets further than this error by giving me an error already brought up here (about the circular arrays).
Secondly, does this program accept .my files?

@cavaliercoder
Copy link
Collaborator

The script doesn't actually read MIB or .my files itself. It relies on the OID tree built by the SNMP library. So if your .my file is correctly loaded by snmp, it will be available to mib2zabbix. To ensure your .my file is loaded correctly, please see http://net-snmp.sourceforge.net/tutorial/tutorial-5/commands/mib-options.html.

The -o flag is intended to define the OID in the loaded tree (like .x.y.z.1.2.3), from which a template will be generated; not the MIB/My file you wish to import.

This is mainly because an OID tree can be defined in multiple, interdependent files. It's best to let the SNMP lib handle dependency resolution and consume its tree.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants