SNMP traps to telegraf to influxdb

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?

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

urls = [“http://:8086"]
database = “storage” # required
retention_policy = “”
write_consistency = “any”
timeout = “5s”
username = "
password = "

agents = [ “:161", ":161” ]
timeout = “5s”
retries = 3
version = 2
community = “public”
max_repetitions = 10

name = “netapp”

name = “nodeName” #walkable snmp but I do not see anything reaching influxdb
oid = “”
name = “volumeNearlyFull” #trap
oid = “”
name = “volumeFull” #trap
oid = “”

Unfortunately, we don’t have support for SNMP traps yet in Telegraf. I believe you could use Kapacitor SNMP trap support though.

Could you fill out a feature request on github to create a Telegraf input plugin?

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?

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 on Telegraf. Could you do this so you will be attached to the issue if we have more questions?

Thanks for the quick replies,

openned SNMP trap collection Telegraf · Issue #4377 · influxdata/telegraf · GitHub