### Relevant telegraf.conf:
```toml
/etc/telegraf/telegraf.conf:
[global_ta…gs]
[agent]
interval = "60s"
round_interval = true
metric_batch_size = 1000
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
This isn't the real config, iv'e replaced the secret stuff etc. but should show what we did.
/etc/telegraf/arch/input_snmp_test.conf:
[[inputs.snmp]]
agents = [ "1.2.3.4" ]
interval = "60s"
timeout = "10s"
retries = 10
version = 3
sec_name = "abcde"
auth_protocol = "SHA"
auth_password = "superduper"
sec_level = "authPriv"
context_name = "con/default"
priv_protocol = "AES"
priv_password = "34566"
max_repetitions = 30
[[inputs.snmp.field]]
name = "hostname"
oid = "RFC1213-MIB::sysName.0"
is_tag = true
[[inputs.snmp.field]]
name = "location"
oid = "RFC1213-MIB::sysLocation.0"
is_tag = true
[[inputs.snmp.table]]
name = "as-router-interfaces"
inherit_tags = [ "hostname", "location" ]
oid = "IF-MIB::ifXTable"
[[inputs.snmp.table.field]]
name = "ifDescr"
oid = "IF-MIB::ifDescr"
is_tag = true
[[inputs.snmp.table.field]]
name = "ifAlias"
oid = "IF-MIB::ifAlias"
is_tag = true
```
### System info:
Debian GNU/Linux 9 (stretch) with telegraf 1.16.2-1 (influx repo)
### Steps to reproduce:
Configure an snmp input which did not answer AFTER successfull initial contact.
On an snmpget this is when you get the "Timeout: No Response from x.x.x.x" vs. the "normal" output "snmpwalk: Timeout".
I think this happens if you request an OID which is not allowed for this special account.
### Expected behavior:
```
2020-11-27T11:48:57Z I! Starting Telegraf 1.16.2
2020-11-27T11:48:57Z D! [agent] Initializing plugins
2020-11-27T11:48:57Z D! [agent] Starting service inputs
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifXTable"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "IF-MIB::ifXTable.1"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptable" "-Ch" "-Cl" "-c" "public" "127.0.0.1" "IF-MIB::ifXTable"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifDescr"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifAlias"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifName"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifInMulticastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifInBroadcastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifOutMulticastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifOutBroadcastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCInOctets"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCInUcastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCInMulticastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCInBroadcastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCOutOctets"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCOutUcastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCOutMulticastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCOutBroadcastPkts"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifLinkUpDownTrapEnable"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHighSpeed"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifPromiscuousMode"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifConnectorPresent"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifCounterDiscontinuityTime"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "RFC1213-MIB::sysName.0"
2020-11-27T11:48:57Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "RFC1213-MIB::sysLocation.0"
2020-11-27T11:52:37Z E! [inputs.snmp] Error in plugin: agent 1.2.3.4: performing get on field hostname: Request timeout (after 10 retries)
2020-11-27T11:56:17Z E! [inputs.snmp] Error in plugin: agent 1.2.3.4: gathering table as-router-interfaces: performing bulk walk for field ifDescr: Request timeout (after 10 retries)
2020-11-27T11:56:17Z D! [agent] Stopping service inputs
2020-11-27T11:56:17Z D! [agent] Input channel closed
2020-11-27T11:56:17Z D! [agent] Stopped Successfully
2020-11-27T11:56:17Z E! [telegraf] Error running agent: input plugins recorded 2 errors
real 7m20,211s
user 0m0,240s
sys 0m0,120s
```
### Actual behavior:
```
2020-11-27T11:58:55Z I! Starting Telegraf 1.16.2
2020-11-27T11:58:55Z D! [agent] Initializing plugins
2020-11-27T11:58:55Z D! [agent] Starting service inputs
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifXTable"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "IF-MIB::ifXTable.1"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptable" "-Ch" "-Cl" "-c" "public" "127.0.0.1" "IF-MIB::ifXTable"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifDescr"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifAlias"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifName"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifInMulticastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifInBroadcastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifOutMulticastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifOutBroadcastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCInOctets"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCInUcastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCInMulticastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCInBroadcastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCOutOctets"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCOutUcastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCOutMulticastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHCOutBroadcastPkts"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifLinkUpDownTrapEnable"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifHighSpeed"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifPromiscuousMode"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifConnectorPresent"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "IF-MIB::ifCounterDiscontinuityTime"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "RFC1213-MIB::sysName.0"
2020-11-27T11:58:55Z D! [inputs.snmp] executing "snmptranslate" "-Td" "-Ob" "RFC1213-MIB::sysLocation.0"
2020-11-27T12:03:25Z E! [inputs.snmp] Error in plugin: agent 1.2.3.4: performing get on field hostname: recover: runtime error: invalid memory address or nil pointer dereference
Stack:goroutine 105 [running]:
github.com/soniah/gosnmp.(*GoSNMP).send.func1(0xc0005594a0)
/go/pkg/mod/github.com/soniah/gosnmp@v1.25.0/marshal.go:306 +0xa5
panic(0x28928a0, 0x47aeb50)
/usr/local/go/src/runtime/panic.go:969 +0x175
github.com/soniah/gosnmp.(*GoSNMP).send(0xc00057a900, 0xc000aa2540, 0xc000322001, 0x0, 0x33623a0, 0xc0000d2020)
/go/pkg/mod/github.com/soniah/gosnmp@v1.25.0/marshal.go:352 +0x205
github.com/soniah/gosnmp.(*GoSNMP).Get(0xc00057a900, 0xc0000ac520, 0x1, 0x1, 0x0, 0x33623a0, 0xc0000ac440)
/go/pkg/mod/github.com/soniah/gosnmp@v1.25.0/gosnmp.go:354 +0x18d
github.com/influxdata/telegraf/internal/snmp.GosnmpWrapper.Get(0xc00057a900, 0xc0000ac520, 0x1, 0x1, 0xa, 0xc000559638, 0xc000559638)
/go/src/github.com/influxdata/telegraf/internal/snmp/wrapper.go:51 +0x85
github.com/influxdata/telegraf/plugins/inputs/snmp.Table.Build(0x2e1cb42, 0x4, 0x0, 0x0, 0x0, 0x0, 0xc00066cdc0, 0x2, 0x2, 0x0, ...)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:426 +0xbf3
github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).gatherTable(0xc0001d8f00, 0x33d9120, 0xc000595760, 0x33b0260, 0xc00057a900, 0x2e1cb42, 0x4, 0x0, 0x0, 0x0, ...)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:368 +0x7e
github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).Gather.func1(0xc00019d140, 0xc0001d8f00, 0x33d9120, 0xc000595760, 0x0, 0xc0001af581, 0xf)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:350 +0x210
created by github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).Gather
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:336 +0x12c
goroutine 1 [semacquire, 4 minutes]:
sync.runtime_Semacquire(0xc00028cfe8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00028cfe0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/influxdata/telegraf/agent.(*Agent).test(0xc000010138, 0x33bb7a0, 0xc00067e640, 0x0, 0xc000100d80, 0x33648a0, 0xc000595720)
/go/src/github.com/influxdata/telegraf/agent/agent.go:983 +0x365
github.com/influxdata/telegraf/agent.(*Agent).Test(0xc000010138, 0x33bb7a0, 0xc00067e640, 0x0, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/agent/agent.go:884 +0xd5
main.runAgent(0x33bb7a0, 0xc00067e640, 0x49646a8, 0x0, 0x0, 0x49646a8, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:180 +0x525
main.reloadLoop(0x49646a8, 0x0, 0x0, 0x49646a8, 0x0, 0x0, 0xc000593d10, 0x0, 0x0, 0xc000593d10, ...)
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:110 +0x267
main.run(...)
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf_posix.go:7
main.main()
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:361 +0x71e
goroutine 51 [syscall, 4 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:147 +0x9d
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:150 +0x45
goroutine 20 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc000181630)
/go/pkg/mod/go.opencensus.io@v0.22.3/stats/view/worker.go:154 +0x105
created by go.opencensus.io/stats/view.init.0
/go/pkg/mod/go.opencensus.io@v0.22.3/stats/view/worker.go:32 +0x57
goroutine 7 [select, 4 minutes]:
main.reloadLoop.func1(0xc0004fe180, 0xc0000b00e0, 0xc0003322d0)
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:97 +0xae
created by main.reloadLoop
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:96 +0x1fe
goroutine 8 [chan receive, 4 minutes]:
github.com/influxdata/telegraf/agent.(*Agent).Test.func1(0xc00028cfa0, 0xc000100d80)
/go/src/github.com/influxdata/telegraf/agent/agent.go:875 +0x1b9
created by github.com/influxdata/telegraf/agent.(*Agent).Test
/go/src/github.com/influxdata/telegraf/agent/agent.go:870 +0x9c
goroutine 9 [semacquire, 4 minutes]:
sync.runtime_Semacquire(0xc00028cff8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00028cff0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/influxdata/telegraf/agent.(*Agent).testRunInputs(0xc000010138, 0x33bb7a0, 0xc00067e640, 0x0, 0xc000595740, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/agent/agent.go:429 +0x13b
github.com/influxdata/telegraf/agent.(*Agent).test.func4(0xc00028cfe0, 0xc000010138, 0x33bb7a0, 0xc00067e640, 0x0, 0xc000595740)
/go/src/github.com/influxdata/telegraf/agent/agent.go:977 +0x8b
created by github.com/influxdata/telegraf/agent.(*Agent).test
/go/src/github.com/influxdata/telegraf/agent/agent.go:975 +0x352
goroutine 10 [chan receive, 4 minutes]:
github.com/influxdata/telegraf/agent.(*Agent).testRunInputs.func1(0xc00023c2a0)
/go/src/github.com/influxdata/telegraf/agent/agent.go:387 +0x47
created by github.com/influxdata/telegraf/agent.(*Agent).testRunInputs
/go/src/github.com/influxdata/telegraf/agent/agent.go:386 +0x76
goroutine 11 [semacquire, 4 minutes]:
sync.runtime_Semacquire(0xc00019d148)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00019d140)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).Gather(0xc0001d8f00, 0x33d9120, 0xc000595760, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:362 +0x157
github.com/influxdata/telegraf/agent.(*Agent).testRunInputs.func2(0xc00028cff0, 0xc000010138, 0xc00023c2a0, 0xc000595740, 0xc00011ef00)
/go/src/github.com/influxdata/telegraf/agent/agent.go:424 +0x234
created by github.com/influxdata/telegraf/agent.(*Agent).testRunInputs
/go/src/github.com/influxdata/telegraf/agent/agent.go:393 +0x109
2020-11-27T12:08:46Z E! [inputs.snmp] Error in plugin: agent 1.2.3.4: gathering table as-router-interfaces: performing bulk walk for field ifDescr: recover: runtime error: invalid memory address or nil pointer dereference
Stack:goroutine 105 [running]:
github.com/soniah/gosnmp.(*GoSNMP).send.func1(0xc000559328)
/go/pkg/mod/github.com/soniah/gosnmp@v1.25.0/marshal.go:306 +0xa5
panic(0x28928a0, 0x47aeb50)
/usr/local/go/src/runtime/panic.go:969 +0x175
github.com/soniah/gosnmp.(*GoSNMP).send(0xc00057a900, 0xc00039a0e0, 0xc00067e601, 0x0, 0x33623a0, 0xc0000d2410)
/go/pkg/mod/github.com/soniah/gosnmp@v1.25.0/marshal.go:352 +0x205
github.com/soniah/gosnmp.(*GoSNMP).GetBulk(0xc00057a900, 0xc0005594c8, 0x1, 0x1, 0xc000911e00, 0x13, 0x33d76e0, 0x10100c0000ae0c8)
/go/pkg/mod/github.com/soniah/gosnmp@v1.25.0/gosnmp.go:408 +0x19e
github.com/soniah/gosnmp.(*GoSNMP).walk(0xc00057a900, 0xa5, 0xc0005600a0, 0x14, 0xc0001fa450, 0x33623a0, 0xc000332400)
/go/pkg/mod/github.com/soniah/gosnmp@v1.25.0/walk.go:48 +0x3c7
github.com/soniah/gosnmp.(*GoSNMP).BulkWalk(...)
/go/pkg/mod/github.com/soniah/gosnmp@v1.25.0/gosnmp.go:513
github.com/influxdata/telegraf/internal/snmp.GosnmpWrapper.Walk(0xc00057a900, 0xc0005600a0, 0x14, 0xc0001fa450, 0x443dbc, 0xc000187080)
/go/src/github.com/influxdata/telegraf/internal/snmp/wrapper.go:33 +0x194
github.com/influxdata/telegraf/plugins/inputs/snmp.Table.Build(0xc0001af8e1, 0x14, 0xc0005952a0, 0x2, 0x2, 0x0, 0xc000519400, 0x14, 0x22, 0xc0001af961, ...)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:437 +0x6ca
github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).gatherTable(0xc0001d8f00, 0x33d9120, 0xc000595760, 0x33b0260, 0xc00057a900, 0xc0001af8e1, 0x14, 0xc0005952a0, 0x2, 0x2, ...)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:368 +0x7e
github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).Gather.func1(0xc00019d140, 0xc0001d8f00, 0x33d9120, 0xc000595760, 0x0, 0xc0001af581, 0xf)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:356 +0x332
created by github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).Gather
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:336 +0x12c
goroutine 1 [semacquire, 9 minutes]:
sync.runtime_Semacquire(0xc00028cfe8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00028cfe0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/influxdata/telegraf/agent.(*Agent).test(0xc000010138, 0x33bb7a0, 0xc00067e640, 0x0, 0xc000100d80, 0x33648a0, 0xc000595720)
/go/src/github.com/influxdata/telegraf/agent/agent.go:983 +0x365
github.com/influxdata/telegraf/agent.(*Agent).Test(0xc000010138, 0x33bb7a0, 0xc00067e640, 0x0, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/agent/agent.go:884 +0xd5
main.runAgent(0x33bb7a0, 0xc00067e640, 0x49646a8, 0x0, 0x0, 0x49646a8, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:180 +0x525
main.reloadLoop(0x49646a8, 0x0, 0x0, 0x49646a8, 0x0, 0x0, 0xc000593d10, 0x0, 0x0, 0xc000593d10, ...)
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:110 +0x267
main.run(...)
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf_posix.go:7
main.main()
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:361 +0x71e
goroutine 51 [syscall, 9 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:147 +0x9d
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:150 +0x45
goroutine 20 [select]:
go.opencensus.io/stats/view.(*worker).start(0xc000181630)
/go/pkg/mod/go.opencensus.io@v0.22.3/stats/view/worker.go:154 +0x105
created by go.opencensus.io/stats/view.init.0
/go/pkg/mod/go.opencensus.io@v0.22.3/stats/view/worker.go:32 +0x57
goroutine 7 [select, 9 minutes]:
main.reloadLoop.func1(0xc0004fe180, 0xc0000b00e0, 0xc0003322d0)
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:97 +0xae
created by main.reloadLoop
/go/src/github.com/influxdata/telegraf/cmd/telegraf/telegraf.go:96 +0x1fe
goroutine 8 [chan receive, 9 minutes]:
github.com/influxdata/telegraf/agent.(*Agent).Test.func1(0xc00028cfa0, 0xc000100d80)
/go/src/github.com/influxdata/telegraf/agent/agent.go:875 +0x1b9
created by github.com/influxdata/telegraf/agent.(*Agent).Test
/go/src/github.com/influxdata/telegraf/agent/agent.go:870 +0x9c
goroutine 9 [semacquire, 9 minutes]:
sync.runtime_Semacquire(0xc00028cff8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00028cff0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/influxdata/telegraf/agent.(*Agent).testRunInputs(0xc000010138, 0x33bb7a0, 0xc00067e640, 0x0, 0xc000595740, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/agent/agent.go:429 +0x13b
github.com/influxdata/telegraf/agent.(*Agent).test.func4(0xc00028cfe0, 0xc000010138, 0x33bb7a0, 0xc00067e640, 0x0, 0xc000595740)
/go/src/github.com/influxdata/telegraf/agent/agent.go:977 +0x8b
created by github.com/influxdata/telegraf/agent.(*Agent).test
/go/src/github.com/influxdata/telegraf/agent/agent.go:975 +0x352
goroutine 10 [chan receive, 9 minutes]:
github.com/influxdata/telegraf/agent.(*Agent).testRunInputs.func1(0xc00023c2a0)
/go/src/github.com/influxdata/telegraf/agent/agent.go:387 +0x47
created by github.com/influxdata/telegraf/agent.(*Agent).testRunInputs
/go/src/github.com/influxdata/telegraf/agent/agent.go:386 +0x76
goroutine 11 [semacquire, 9 minutes]:
sync.runtime_Semacquire(0xc00019d148)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00019d140)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/influxdata/telegraf/plugins/inputs/snmp.(*Snmp).Gather(0xc0001d8f00, 0x33d9120, 0xc000595760, 0x0, 0x0)
/go/src/github.com/influxdata/telegraf/plugins/inputs/snmp/snmp.go:362 +0x157
github.com/influxdata/telegraf/agent.(*Agent).testRunInputs.func2(0xc00028cff0, 0xc000010138, 0xc00023c2a0, 0xc000595740, 0xc00011ef00)
/go/src/github.com/influxdata/telegraf/agent/agent.go:424 +0x234
created by github.com/influxdata/telegraf/agent.(*Agent).testRunInputs
/go/src/github.com/influxdata/telegraf/agent/agent.go:393 +0x109
2020-11-27T12:08:46Z D! [agent] Stopping service inputs
2020-11-27T12:08:46Z D! [agent] Input channel closed
2020-11-27T12:08:46Z D! [agent] Stopped Successfully
2020-11-27T12:08:46Z E! [telegraf] Error running agent: input plugins recorded 2 errors
```
### Additional info:
Mayby an additional question...
As you can see, there are an timeout of 10s with retries also 10 per snmp request.
There are 2 requests, so if i understand it right there should be ~100s per request befor it fails but the time is more 7 minutes instead of around 4 minutes for the "Expected behavior" part. In the "Actual behavior" case its even longer, nearly 10 minutes.
Does this work differently as i think?