exometer icon indicating copy to clipboard operation
exometer copied to clipboard

exometer_report_snmp oid_conflict error

Open IgorKarymov opened this issue 11 years ago • 5 comments

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 avatar Jul 28 '14 13:07 IgorKarymov

Could you please confirm or comment this issue?

IgorKarymov avatar Aug 07 '14 07:08 IgorKarymov

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

tolbrino avatar Aug 07 '14 07:08 tolbrino

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

tolbrino avatar Aug 15 '14 08:08 tolbrino

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

IgorKarymov avatar Aug 15 '14 08:08 IgorKarymov

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

tolbrino avatar Aug 15 '14 09:08 tolbrino