Feuerlabs / exometer

Basic measurement objects and probe behavior
Mozilla Public License 2.0
528 stars 105 forks source link

exometer_report_snmp oid_conflict error #70

Open IgorKarymov opened 10 years ago

IgorKarymov commented 10 years ago

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:

IgorKarymov commented 10 years ago

Could you please confirm or comment this issue?

tolbrino commented 10 years ago

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

tolbrino commented 10 years ago

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

IgorKarymov commented 10 years ago

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

tolbrino commented 10 years ago

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