FORMAT SNMPTRAPS in FLUENTD

435 views
Skip to first unread message

hemant...@cangonetworks.com

unread,
Jan 6, 2016, 12:52:49 AM1/6/16
to Fluentd Google Group
How to format the snmptrap in fluentd and place in Elasticsearch???

Mr. Fiber

unread,
Jan 6, 2016, 1:57:50 AM1/6/16
to Fluentd Google Group
Please write detail information of "How to format".


Masahiro


On Wed, Jan 6, 2016 at 2:52 PM, <hemant...@cangonetworks.com> wrote:
How to format the snmptrap in fluentd and place in Elasticsearch???

--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hemanth Kumar

unread,
Jan 6, 2016, 2:22:24 AM1/6/16
to flu...@googlegroups.com
Actually I received the trap but it is not in human readable format? I am unknown of the data behind this 

Ex: <SNMP::SNMPv2 @varbind:xxa028376vsjduua>

I am able to receive trap but I need proper format to get timestamp and all.

--
You received this message because you are subscribed to a topic in the Google Groups "Fluentd Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluentd/j_cnN52pe90/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluentd+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
HEMANTH KUMAR D| CANGO |Software Engineer | +918144092035/+918754778472|hemant...@cangonetworks.com
Module # 305, 2nd Floor, NSIC Software Technology Park,
Ekkaduthangal, Chennai - 600032.

Mr. Fiber

unread,
Jan 6, 2016, 5:17:42 AM1/6/16
to Fluentd Google Group
Modifying following code is needed.
This code assumes SNMPTrap_V1 so you should research SNMPTrap_V2 struct in ruby-snmptrap for handling SNMPTrap v2 protocol.


Hemanth Kumar

unread,
Jan 6, 2016, 5:19:19 AM1/6/16
to flu...@googlegroups.com
Do this contains modified file??

Mr. Fiber

unread,
Jan 6, 2016, 5:21:12 AM1/6/16
to Fluentd Google Group
What does 'mofified file' mean?

Hemanth Kumar

unread,
Jan 6, 2016, 5:22:47 AM1/6/16
to flu...@googlegroups.com
No actually, you have given me solution right? I am asking whether it is affected in the link (github) that you have sent contains modified code that you are pointing as a solution to this issue.

Mr. Fiber

unread,
Jan 6, 2016, 5:30:16 AM1/6/16
to Fluentd Google Group
you have given me solution right?

Yes. You can change this code to support SNMPTrap v2 and convert its value to proper record by your own requirement.
If your change is useful for other users, you can send a patch to above repository.

Hemanth Kumar

unread,
Jan 11, 2016, 9:55:58 AM1/11/16
to flu...@googlegroups.com
Hi Fiber,

Hope you are doing good.

Actually, I am getting SNMP Traps only when the config file is running in separate window and snmptrap command running separate window. I need to receive the snmp trap automatically while running configuration file. i.e Through MIB Files, I need to run the snmp traps. How to make this possible??

Mr. Fiber

unread,
Jan 11, 2016, 4:24:11 PM1/11/16
to Fluentd Google Group
How to make this possible??

I don't know MIB files.
But if you add MIB files support to fluent-plugin-snmptrap plugin,
it could be.

Reply all
Reply to author
Forward
0 new messages