I tried that originally, but for some reason it fails validation.

{:timestamp=>"2013-05-13T10:08:57.914000+0100", :message=>"Invalid setting
for snmptrap input plugin:\n\n  input {\n    snmptrap {\n      # This
setting must be a path\n      # File does not exist or cannot be opened
/opt/logstash/mibs\n      yamlmibdir => [\"/opt/logstash/mibs\"]\n
 ...\n    }\n  }", :level=>:error}

Despite this, the snmp plugin is able to open and use the MIBs.


On 13 May 2013 06:42, Jordan Sissel <notifications@github.com> wrote:

> In lib/logstash/inputs/snmptrap.rb:
>
> > @@ -24,6 +24,8 @@ class LogStash::Inputs::Snmptrap < LogStash::Inputs::Base
> >    # SNMP Community String to listen for.
> >    config :community, :validate => :string, :default => "public"
> >
> > +  # directory of YAML MIB maps  (same format ruby-snmp uses)
> > +  config :yamlmibdir, :validate => :string
>
> this should probably be :validate => :path
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/logstash/logstash/pull/477/files#r4188099>
> .
>