# SNMP traps to telegraf to influxdb

**URL:** <https://community.influxdata.com/t/snmp-traps-to-telegraf-to-influxdb/5692>\
**Category:** Telegraf\
**Tags:** telegraf\
**Created:** [June 26, 2018, 2:43pm UTC](https://community.influxdata.com/t/snmp-traps-to-telegraf-to-influxdb/5692 "2018-06-26T14:43:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![erantd](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@erantd](https://community.influxdata.com/u/erantd)\
**Post date:** [June 26, 2018, 2:43pm UTC](https://community.influxdata.com/t/snmp-traps-to-telegraf-to-influxdb/5692/1 "2018-06-26T14:43:14Z")

</div>

Hi,  
I am trying to setup traps from an Ontap box to telegraf, that telegraf sends to influxdb. The idea is to setup the collection of traps like PSU down or disk fail. These are not snmpwalk OID, but only traps that launch when something happens.

Is this possible?

[agent]  
interval = “10s”  
round\_interval = true  
metric\_batch\_size = 1000  
metric\_buffer\_limit = 10000  
collection\_jitter = “0s”  
flush\_interval = “10s”  
flush\_jitter = “5s”  
precision = “s”  
debug = false  
quiet = false  
logfile = “”  
hostname = “”  
omit\_hostname = false

[[outputs.influxdb]]  
urls = [“http://_**:8086"]  
database = “storage” # required  
retention\_policy = “”  
write\_consistency = “any”  
timeout = “5s”  
username = ""  
password = "**_\*\*\*\*”

[[inputs.snmp]]  
agents = [“_ **:161", "** _:161”]  
timeout = “5s”  
retries = 3  
version = 2  
community = “public”  
max\_repetitions = 10

name = “netapp”

[[inputs.snmp.field]]  
name = “nodeName” #walkable snmp but I do not see anything reaching influxdb  
oid = “1.3.6.1.4.1.789.1.25.2.1.1”  
[[inputs.snmp.field]]  
name = “volumeNearlyFull” #trap  
oid = “1.3.6.1.4.1.789.0.85”  
[[inputs.snmp.field]]  
name = “volumeFull” #trap  
oid = “1.3.6.1.4.1.789.0.82”

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [June 29, 2018, 9:19pm UTC](https://community.influxdata.com/t/snmp-traps-to-telegraf-to-influxdb/5692/2 "2018-06-29T21:19:34Z")

</div>

Unfortunately, we don’t have support for SNMP traps yet in Telegraf. I believe you could use [Kapacitor SNMP trap](https://docs.influxdata.com/kapacitor/v1.5/event_handlers/snmptrap/) support though.

Could you fill out a [feature request](https://github.com/influxdata/telegraf/issues/new/choose) on github to create a Telegraf input plugin?

---

<div class="post-metadata">

**Author:** ![erantd](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@erantd](https://community.influxdata.com/u/erantd)\
**Post date:** [July 3, 2018, 12:26pm UTC](https://community.influxdata.com/t/snmp-traps-to-telegraf-to-influxdb/5692/3 "2018-07-03T12:26:23Z")

</div>

Hi, thanks for the answer. We would like to send traps to Kapacitor, from what I understand the link you send is for Kapacitor to send traps out. Is there a way to send it to Kapacitor?

---

<div class="post-metadata">

**Author:** ![daniel](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/daniel/32/142_2.png) [@daniel](https://community.influxdata.com/u/daniel)\
**Post date:** [July 3, 2018, 6:00pm UTC](https://community.influxdata.com/t/snmp-traps-to-telegraf-to-influxdb/5692/4 "2018-07-03T18:00:41Z")

</div>

Oh, you are right, I’m not aware of a way to send them to Kapacitor. Perhaps there is an existing tool but I think we should open a [new feature request](https://github.com/influxdata/telegraf/issues/new?template=Feature_request.md) on Telegraf. Could you do this so you will be attached to the issue if we have more questions?

---

<div class="post-metadata">

**Author:** ![erantd](https://avatars.discourse-cdn.com/v4/letter/e/bc8723/32.png) [@erantd](https://community.influxdata.com/u/erantd)\
**Post date:** [July 4, 2018, 11:03am UTC](https://community.influxdata.com/t/snmp-traps-to-telegraf-to-influxdb/5692/5 "2018-07-04T11:03:23Z")

</div>

Hi,  
Thanks for the quick replies,

openned [SNMP trap collection Telegraf · Issue #4377 · influxdata/telegraf · GitHub](https://github.com/influxdata/telegraf/issues/4377)
