fix(inputs.snmp_trap): Remove timeout deprecation (#16145)

This commit is contained in:
Dane Strandboge 2024-11-18 10:05:32 -06:00 committed by GitHub
parent 427b8d3a9b
commit 9680123c6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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"`