@cryptotaxi247 / netdata-1 / commits / 614123e35

chore(go.d/snmp): remove recreating client on "packet is not authentic" (#21010)

Ilya Mashchenko committed Sep 19, 2025 at 13:09 UTC 614123e35d50d5f93bb717b527f568a9459d2186
1 file changed -9
src/go/plugin/go.d/collector/snmp/collector.go
-9
@@ -6,7 +6,6 @@ import (
6 "context"
7 _ "embed"
8 "fmt"
9 - "strings"
9
10 "github.com/gosnmp/gosnmp"
11
@@ -150,14 +149,6 @@ func (c *Collector) Collect(ctx context.Context) map[string]int64 {
149 mx, err := c.collect()
150 if err != nil {
151 c.Error(err)
153 - // Some buggy SNMPv3 devices occasionally get stuck with
154 - // "packet is not authentic" errors. Closing and dropping
155 - // the client here forces a reconnect on the next scrape,
156 - // which usually recovers the session.
157 - if strings.Contains(err.Error(), "packet is not authentic") {
158 - c.Cleanup(ctx)
159 - c.snmpClient = nil
160 - }
152 }
153
154 if len(mx) == 0 {