Skip to content

Add tags to snmp_trap input for context name and engine ID#7633

Merged
reimda merged 2 commits intomasterfrom
snmpv3-contextname-engineid
Jun 5, 2020
Merged

Add tags to snmp_trap input for context name and engine ID#7633
reimda merged 2 commits intomasterfrom
snmpv3-contextname-engineid

Conversation

@reimda
Copy link
Copy Markdown
Contributor

@reimda reimda commented Jun 4, 2020

In V3 traps, the trap sender sends a context name and engine ID. Before this change, telegraf's snmp_trap input passed a context name and engine ID to Gosnmp. Gosnmp doesn't use these when receiving traps, only when sending, so this change removed them. The input now also adds tags for the context name and engine ID that we receive in the trap.

Also clean up variable naming in tests.

@reimda reimda requested a review from danielnelson June 4, 2020 21:47
@reimda reimda merged commit 49caba9 into master Jun 5, 2020
jaecktec pushed a commit to jaecktec/telegraf that referenced this pull request Jun 8, 2020
@reimda reimda added this to the 1.15.0 milestone Jun 8, 2020
@reimda reimda added area/snmp feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin labels Jun 8, 2020
@reimda reimda deleted the snmpv3-contextname-engineid branch June 8, 2020 16:58
@reimda reimda linked an issue Jun 8, 2020 that may be closed by this pull request
rhajek pushed a commit to bonitoo-io/telegraf that referenced this pull request Jul 13, 2020
idohalevi pushed a commit to idohalevi/telegraf that referenced this pull request Sep 29, 2020
arstercz pushed a commit to arstercz/telegraf that referenced this pull request Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/snmp feat Improvement on an existing feature such as adding a new setting/mode to an existing plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement SNMP traps version 3

2 participants