diff --git a/plugins/inputs/snmp_trap/README.md b/plugins/inputs/snmp_trap/README.md index 498efe49ff369..f9d19576ac62c 100644 --- a/plugins/inputs/snmp_trap/README.md +++ b/plugins/inputs/snmp_trap/README.md @@ -62,8 +62,8 @@ details. ## To add paths when translating with netsnmp, use the MIBDIRS environment variable # path = ["/usr/share/snmp/mibs"] ## - ## Deprecated in 1.20.0; no longer running snmptranslate ## Timeout running snmptranslate command + ## Used by the netsnmp translator only # timeout = "5s" ## Snmp version; one of "1", "2c" or "3". # version = "2c" diff --git a/plugins/inputs/snmp_trap/sample.conf b/plugins/inputs/snmp_trap/sample.conf index 62b891f73f113..3ab073c8876f6 100644 --- a/plugins/inputs/snmp_trap/sample.conf +++ b/plugins/inputs/snmp_trap/sample.conf @@ -14,8 +14,8 @@ ## To add paths when translating with netsnmp, use the MIBDIRS environment variable # path = ["/usr/share/snmp/mibs"] ## - ## Deprecated in 1.20.0; no longer running snmptranslate ## Timeout running snmptranslate command + ## Used by the netsnmp translator only # timeout = "5s" ## Snmp version; one of "1", "2c" or "3". # version = "2c" diff --git a/plugins/inputs/snmp_trap/snmp_trap.go b/plugins/inputs/snmp_trap/snmp_trap.go index c0890a3f4ed46..6bebba984ec5b 100644 --- a/plugins/inputs/snmp_trap/snmp_trap.go +++ b/plugins/inputs/snmp_trap/snmp_trap.go @@ -43,7 +43,7 @@ func (l wrapLog) Print(args ...interface{}) { type SnmpTrap struct { ServiceAddress string `toml:"service_address"` - Timeout config.Duration `toml:"timeout" deprecated:"1.20.0;1.35.0;unused option"` + Timeout config.Duration `toml:"timeout"` Version string `toml:"version"` Translator string `toml:"-"` Path []string `toml:"path"`