Hi!
Could You please help to configure SNMP input in the Logstash.
I 've tried to use the official documentation, but got some problems.(
My input configuration is:
{
input {
snmp {
get => ["1.3.6.1.4.1.14876"]
hosts => [{host => "udp:10.10.108.17/161"}]
mib_paths => ["/root/mib/RFC1213-MIB.dic"]
oid_root_skip => 0
interval => 30
}
}
And in logs I'm getting the next errors:
[2019-05-28T16:04:06,720][ERROR][logstash.pipeline ] Error registering plugin {:pipeline_id=>"main", :plugin=>"<LogStash::Inputs::Snmp mib_paths=>[\"root/mib/RFC1213-MIB.dic\"], oid_root_skip=>0, interval=>30, id=>\"1008b99d29004ebd8e92048301b71e1b78c7305817d63883182fe7b216d9b4d7\", hosts=>[{\"host\"=>\"udp:10.10.108.17/161\"}], get=>[\"1.3.6.1.4.1.14876\"], enable_metric=>true, codec=><LogStash::Codecs::Plain id=>\"plain_cad67756-c145-4779-8765-c6f81e2dd0cd\", enable_metric=>true, charset=>\"UTF-8\">, add_field=>{\"host\"=>\"%{[@metadata][host_address]}\"}, use_provided_mibs=>true>", :error=>"file or directory path expected: root/mib/RFC1213-MIB.dic", :thread=>"#<Thread:0x5ac66d61 run>"}
[2019-05-28T16:04:15,786][ERROR][logstash.pipeline ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<LogStash::SnmpMibError: file or directory path expected: root/mib/RFC1213-MIB.dic>, :backtrace=>["/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmp-1.0.1/lib/logstash/inputs/snmp/mib.rb:108:in `add_mib_path'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmp-1.0.1/lib/logstash/inputs/snmp.rb:106:in `block in register'", "org/jruby/RubyArray.java:1792:in `each'", "/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-snmp-1.0.1/lib/logstash/inputs/snmp.rb:104:in `register'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:259:in `register_plugin'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:270:in `block in register_plugins'", "org/jruby/RubyArray.java:1792:in `each'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:270:in `register_plugins'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:413:in `start_inputs'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:311:in `start_workers'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:217:in `run'", "/usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:176:in `block in start'"], :thread=>"#<Thread:0x5ac66d61 run>"}
[2019-05-28T16:04:15,810][ERROR][logstash.agent ] Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}
What should I check?
Thank you in advance!