Use Logstash-input-snmp,cannot receive DELL TEST TRAP

Error handling trap: Expected snmpTrapOID.0, found [name=DELL-RAC-MIB::server3.5.3.1.1.0, value=TST001 (OCTET STRING)]
/data/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/snmp-1.2.0/lib/snmp/pdu.rb:293:in trap_oid' /data/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/snmp-1.2.0/lib/snmp/manager.rb:732:inblock in select_handler'
org/jruby/ext/thread/Mutex.java:148:in synchronize' /data/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/snmp-1.2.0/lib/snmp/manager.rb:730:inselect_handler'
/data/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/snmp-1.2.0/lib/snmp/manager.rb:714:in block in process_traps' org/jruby/RubyKernel.java:1292:inloop'
/data/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/snmp-1.2.0/lib/snmp/manager.rb:704:in process_traps' /data/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/logstash-input-snmptrap-3.0.6/lib/logstash/inputs/snmptrap/patches/trap_listener.rb:17:inprocess_traps'
/data/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/snmp-1.2.0/lib/snmp/manager.rb:631:in `block in initialize'
Received data:
"0\x82\x01\x8C\x02\x01\x01\x04\tgdsTest01\xA7\x82\x01z\x02\x04\x1Aa6\xDE\x02\x01\x00\x02\x01\x000\x82\x01j0\x1E\x06\n+\x06\x01\x06\x03\x01\x01\x04\x01\x00\x06\x10+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x02\x05\x00\xD1\e0\x18\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\x01\x00\x04\x06TST0010|\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\x02\x00\x04jThe iDRAC generated a test trap event in response to a user request. (Trap generated using SNMPv2 format.)0\x13\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\x03\x00\x02\x01\x030\x19\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\x04\x00\x04\a1R127220\x1C\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\x05\x00\x04\nDC15PM-0430\x12\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\x06\x00\x04\x000\x12\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\a\x00\x04\x000\x12\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\b\x00\x04\x000\x12\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\t\x00\x04\x000\x12\x06\x0E+\x06\x01\x04\x01\x85"\xD5\f\x05\x03\x01\n\x00\x04\x00"

here is snmp.conf ,as follow :

[root@monitordb logstash-6.3.0]# cat config/snmp1.conf
input {
snmptrap {
type => "snmptrap"
community => "gdsTest01"
host => "0.0.0.0"
port => 7777
yamlmibdir => "/data/logstash-6.3.0/vendor/bundle/jruby/2.3.0/gems/snmp-1.2.0/data/ruby/snmp/mibs"
}
}

output {
file{
path => "/tmp/snmp_test.txt"
write_behavior => overwrite
}
exec {
command => "echo $(tail -n 1 /tmp/snmp_test.txt) >> /tmp/6666.txt"
}
stdout {
codec => rubydebug
}
}

Why I received those errors

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.