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

exometer_report_snmp oid_conflict error #70

Open
IgorKarymov opened this issue Jul 28, 2014 · 5 comments
Open

exometer_report_snmp oid_conflict error #70

IgorKarymov opened this issue Jul 28, 2014 · 5 comments
Assignees

Comments

@IgorKarymov
Copy link
Contributor

Hi! I faced with this error when trying to create very basic example of using of exometer with snmp integration.

(agent@cabal)2> 17:20:30.877 [info] MIB /tmp/exometer/EXOMETER-METRICS-MIB unloaded
17:20:30.877 [error] Error {error,{'load aborted at',"/tmp/exometer/EXOMETER-METRICS-MIB",oid_conflict}} when loading MIB /tmp/exometer/EXOMETER-METRICS-MIB
17:20:30.877 [error] CRASH REPORT Process exometer_report_snmp with 0 neighbours crashed with reason: no match of right hand value {error,{'load aborted at',"/tmp/exometer/EXOMETER-METRICS-MIB",oid_conflict}} in exometer_report_snmp:enable_metric/2 line 219
17:20:30.877 [info] exometer_report_snmp([{mib_template,"priv/EXOMETER-METRICS-MIB.mib"},{mib_dir,"/tmp/exometer"}]): Starting
17:20:30.879 [info] MIB /tmp/exometer/EXOMETER-METRICS-MIB loaded
17:20:30.886 [info] MIB /tmp/exometer/EXOMETER-METRICS-MIB unloaded
17:20:30.887 [error] Error {error,{'load aborted at',"/tmp/exometer/EXOMETER-METRICS-MIB",oid_conflict}} when loading MIB /tmp/exometer/EXOMETER-METRICS-MIB
17:20:30.887 [error] CRASH REPORT Process exometer_report_snmp with 0 neighbours crashed with reason: no match of right hand value {error,{'load aborted at',"/tmp/exometer/EXOMETER-METRICS-MIB",oid_conflict}} in exometer_report_snmp:enable_metric/2 line 219
17:20:30.887 [info] exometer_report_snmp([{mib_template,"priv/EXOMETER-METRICS-MIB.mib"},{mib_dir,"/tmp/exometer"}]): Starting
17:20:30.889 [info] MIB /tmp/exometer/EXOMETER-METRICS-MIB loaded
17:20:30.895 [info] MIB /tmp/exometer/EXOMETER-METRICS-MIB unloaded
17:20:30.895 [error] Error {error,{'load aborted at',"/tmp/exometer/EXOMETER-METRICS-MIB",oid_conflict}} when loading MIB /tmp/exometer/EXOMETER-METRICS-MIB
17:20:30.895 [error] CRASH REPORT Process exometer_report_snmp with 0 neighbours crashed with reason: no match of right hand value {error,{'load aborted at',"/tmp/exometer/EXOMETER-METRICS-MIB",oid_conflict}} in exometer_report_snmp:enable_metric/2 line 219

My example configuration:
https://github.com/IgorKarymov/exometer/tree/oid_conflict_error

Steps to reproduce:

  • make

  • make devnode_snmp_agent (note: start command and configuration file was changed by me)

    • exometer:update_or_create([api, opiwa1], 3000, histogram, [{snmp, []}])

    Also looks like, that changes of dynamically created MIB was stopped after this error occurred (you can introduce new metrics, but file still be the same, however calls will returns 'ok')

@IgorKarymov
Copy link
Contributor Author

Could you please confirm or comment this issue?

@tolbrino
Copy link
Contributor

tolbrino commented Aug 7, 2014

I will try to reproduce this error and get back to you.

@tolbrino tolbrino self-assigned this Aug 7, 2014
@tolbrino
Copy link
Contributor

Your custom branch is missing the template you were using. Could you share that as well? I suspect something clashing within the template.

@IgorKarymov
Copy link
Contributor Author

Thanks for response. I'm using this one https://github.com/IgorKarymov/exometer/blob/master/priv/EXOMETER-METRICS-MIB.mib

@tolbrino
Copy link
Contributor

Hmm, with this file I can't reproduce the error. Will need to try with a properly cleaned copy then.

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