You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flume.apache.org by "Javi Roman (JIRA)" <ji...@apache.org> on 2014/08/28 14:55:08 UTC

[jira] [Comment Edited] (FLUME-2039) Flume source for consuming SNMP traps.

    [ https://issues.apache.org/jira/browse/FLUME-2039?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14113719#comment-14113719 ] 

Javi Roman edited comment on FLUME-2039 at 8/28/14 12:53 PM:
-------------------------------------------------------------

The code is running fine SNMP Traps as source, and SNMP Query.

The SNMP Query configuration for a Power Distribution Unit (PDU server rack) is something like this:

[...]
\# The source
agent.sources.source1.type = org.apache.flume.source.SNMPQuerySource
agent.sources.source1.host = 22.79.52.119
agent.sources.source1.port = 161
agent.sources.source1.delay = 30
\# Power Distribution Unit - PDU name
agent.sources.source1.oid1 = 1.3.6.1.4.1.2000.1.2.5.1.3
\# Amperes
agent.sources.source1.oid2 = 1.3.6.1.4.1.2000.1.2.5.1.7
agent.sources.source1.oid3 = 1.3.6.1.4.1.2000.1.2.5.1.9
agent.sources.source1.oid4 = 1.3.6.1.4.1.2000.1.2.5.1.10
agent.sources.source1.oid5 = 1.3.6.1.4.1.2000.1.2.5.1.12
agent.sources.source1.oid6 = 1.3.6.1.4.1.2000.1.2.5.1.13
agent.sources.source1.oid7 = 1.3.6.1.4.1.2000.1.2.5.1.15
\# Volts
agent.sources.source1.oid8 = 1.3.6.1.4.1.2000.1.2.5.1.16
agent.sources.source1.oid9 = 1.3.6.1.4.1.2000.1.2.5.1.17
agent.sources.source1.oid10 = 1.3.6.1.4.1.2000.1.2.5.1.18
\# Temp
agent.sources.source1.oid11 = 1.3.6.1.4.1.2000.1.3.1.1.7
agent.sources.source1.oid12 = 1.3.6.1.4.1.2000.1.3.1.1.9
\# Humidity
agent.sources.source1.oid13 = 1.3.6.1.4.1.2000.1.3.1.1.10
agent.sources.source1.oid14 = 1.3.6.1.4.1.2000.1.3.1.1.12
\# Energy
agent.sources.source1.oid15 = 1.3.6.1.4.1.2000.1.2.5.1.19
[...]

The SNMP Query source send by means of SNMP GETBULK call the following kind of  "messages" to the channel, every 30 seconds:

"Thu Aug 28 14:44:46 CEST 2014,22.79.52.119,BOA01951B,10,320,81,320,80,320,227,226,226,24,30,64,70,151135"



was (Author: javiroman):
The code is running fine SNMP Traps as source, and SNMP Query.

The SNMP Query configuration for a Power Distribution Unit (PDU server rack) is something like this:

[...]
# The source
agent.sources.source1.type = org.apache.flume.source.SNMPQuerySource
agent.sources.source1.host = 22.79.52.119
agent.sources.source1.port = 161
agent.sources.source1.delay = 30
# Power Distribution Unit - PDU name
agent.sources.source1.oid1 = 1.3.6.1.4.1.2000.1.2.5.1.3
# Amperes
agent.sources.source1.oid2 = 1.3.6.1.4.1.2000.1.2.5.1.7
agent.sources.source1.oid3 = 1.3.6.1.4.1.2000.1.2.5.1.9
agent.sources.source1.oid4 = 1.3.6.1.4.1.2000.1.2.5.1.10
agent.sources.source1.oid5 = 1.3.6.1.4.1.2000.1.2.5.1.12
agent.sources.source1.oid6 = 1.3.6.1.4.1.2000.1.2.5.1.13
agent.sources.source1.oid7 = 1.3.6.1.4.1.2000.1.2.5.1.15
# Volts
agent.sources.source1.oid8 = 1.3.6.1.4.1.2000.1.2.5.1.16
agent.sources.source1.oid9 = 1.3.6.1.4.1.2000.1.2.5.1.17
agent.sources.source1.oid10 = 1.3.6.1.4.1.2000.1.2.5.1.18
# Temp
agent.sources.source1.oid11 = 1.3.6.1.4.1.2000.1.3.1.1.7
agent.sources.source1.oid12 = 1.3.6.1.4.1.2000.1.3.1.1.9
# Humidity
agent.sources.source1.oid13 = 1.3.6.1.4.1.2000.1.3.1.1.10
agent.sources.source1.oid14 = 1.3.6.1.4.1.2000.1.3.1.1.12
# Energy
agent.sources.source1.oid15 = 1.3.6.1.4.1.2000.1.2.5.1.19
[...]

The SNMP Query source send by means of SNMP GETBULK call the following kind of  "messages" to the channel, every 30 seconds:

"Thu Aug 28 14:44:46 CEST 2014,22.79.52.119,BOA01951B,10,320,81,320,80,320,227,226,226,24,30,64,70,151135"


> Flume source for consuming SNMP traps.
> --------------------------------------
>
>                 Key: FLUME-2039
>                 URL: https://issues.apache.org/jira/browse/FLUME-2039
>             Project: Flume
>          Issue Type: New Feature
>          Components: Sinks+Sources
>    Affects Versions: v1.3.1
>            Reporter: Robert Justice
>
> We currently have syslog tcp/udp sources.   We are seeing some interest on user lists for a source to consume SNMP traps on UDP port 162.



--
This message was sent by Atlassian JIRA
(v6.2#6252)