application:start(snmp) failed

Dmitriy Budashny dmitriy.budashny@REDACTED
Fri Oct 30 15:00:01 CET 2009


Hi
I have no any problem with starting snmp with default mib_storage, but I got
error while trying to use mnesia as a mib_storage. Below you can find error
report message "Configuration error: [STANDARD-MIB]: configure failed:
{missing_mandatory,
  sysObjectID}", but sysObjectID is defined in standard.conf, so I can't get
is this my mistake or maybe a bug in snmp. Btw mnesia table
snmpa_symbolic_store was created.
snmp/snmp.config file:
[{snmp,
  [
  {agent,
  [
  {mib_storage, {mnesia, []}},
  {agent_verbosity, debug},
  {config, [{dir, "agent/conf/"}]},
  {db_dir, "cxDB/"},
  {local_db, [{repair,true},{auto_save,5000},{verbosity,debug}]}
  ]},
  {manager,
  [
  {config, [{dir, "manager/conf/"},
  {db_dir, "cxDB/"}]}
  ]}
  ]}].

snmp/agent/conf/standard.conf file:
{sysName, "CX"}.
{sysDescr, "Erlang/OTP Agent"}.
{sysContact, "dmitriy.budashny@REDACTED"}.
{sysLocation, "Somewhere in Ukraine"}.
%%{sysObjectID, [1,3,6,1,4,1]}.
{sysObjectID, [0,0]}.
{sysServices, 72}.
{snmpEnableAuthenTraps, enabled}.

$ erl -sname cx@REDACTED -mnesia dir '"./snmp/cxDB"' -config snmp/
Erlang R13B02 (erts-5.7.3) [source] [smp:2:2] [rq:2] [async-threads:0]
[hipe] [kernel-poll:false] Eshell V5.7.3 (abort with ^G)
(cx@REDACTED)1> mnesia:create_schema([node()]).
ok
(cx@REDACTED)2> mnesia:start().
ok
(cx@REDACTED)3> snmp:start().
*** [2009:10:28 09:34:24 4994] SNMP A-LOCAL-DB LOG ***
  starting
*** [2009:10:28 09:34:24 4995] SNMP A-LOCAL-DB DEBUG ***
  dets open done
*** [2009:10:28 09:34:24 4995] SNMP A-LOCAL-DB DEBUG ***
  started
*** [2009:10:28 09:34:24 4995] SNMP A-LOCAL-DB DEBUG ***
  started

=ERROR REPORT==== 28-Oct-2009::11:34:25 ===
** Configuration error: [STANDARD-MIB]: configure failed:
{missing_mandatory,
  sysObjectID}
*** [2009:10:28 09:34:25 413] SNMP A-LOCAL-DB LOG ***
  terminate: shutdown

=INFO REPORT==== 28-Oct-2009::11:34:25 ===
  application: snmp
  exited: {bad_return,
  {{snmp_app,start,[normal,[]]},
  {'EXIT',
  {{badmatch,
  {error,
  {shutdown,
  {child,undefined,snmpa_supervisor,
  {snmpa_supervisor,start_link,
  [normal,
  [{mib_storage,{mnesia,[]}},
  {agent_verbosity,debug},
  {config,[{dir,"agent/conf/"}]},
  {db_dir,"cxDB/"},
  {local_db,
  [{repair,true},{auto_save,5000},{verbosity,debug}]}]]},
  permanent,2000,supervisor,
  [snmpa_supervisor,supervisor]}}}},
  [{snmp_app,start,2},{application_master,start_it_old,4}]}}}}
  type: temporary
{error,{bad_return,{{snmp_app,start,[normal,[]]},
  {'EXIT',{{badmatch,{error,{shutdown,{child,undefined,
  snmpa_supervisor,
  {snmpa_supervisor,start_link,
  [normal,
  [{mib_storage,{mnesia,[]}},
  {agent_verbosity,debug},
  {config,[...]},
  {db_dir,...},
  {...}]]},
  permanent,2000,supervisor,
  [snmpa_supervisor,supervisor]}}}},
  [{snmp_app,start,2},
  {application_master,start_it_old,4}]}}}}}


-- 
wbr, dym


More information about the erlang-questions mailing list