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

Custom Mibs | ENOENT: No such file or directory #10

Open
daswars opened this issue Oct 24, 2016 · 1 comment
Open

Custom Mibs | ENOENT: No such file or directory #10

daswars opened this issue Oct 24, 2016 · 1 comment

Comments

@daswars
Copy link

daswars commented Oct 24, 2016

Hi, i will use a custom mib file with the metrics-snmp-bulk.rb plugin:

/opt/sensu/embedded/bin/metrics-snmp-bulk.rb -h 192.168.0.102 -C public -O enterprises.xy.xy-series -d /usr/share/snmp/mibs -l xy-mib

result:

An unknown error occured: #<Errno::ENOENT: No such file or directory @ rb_sysopen - /usr/share/snmp/mibs/xy-mib.yaml>

The smtp walk works:
/usr/bin/snmpwalk -c public -v2c 192.168.0.102 enterprises.xy.xy-series

and the mibs file exist: /usr/share/snmp/mibs/xy-mib.txt
The mibs file ist included in /etc/snmp/snmp.conf
why it needs a yaml file?

Can any one help me?

@majormoses
Copy link
Member

I did not spend enough time to run it to ground but it is not something that is being done in this script that is forcing it to be yaml. Here is the line in the script: https://github.com/sensu-plugins/sensu-plugins-snmp/blob/1.1.0/bin/metrics-snmp.rb#L76 I went a step farther: http://www.rubydoc.info/github/hallidave/ruby-snmp/SNMP/Manager#load_modules-instance_method but from a quick scan I do not see why this would be the case.

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

3 participants