@cryptotaxi247 / netdata-1 / commits / 8c9c28ee1

chore(go.d/snmp): remove SNMP prefix from hostname (#20751)

Ilya Mashchenko committed Aug 3, 2025 at 21:14 UTC 8c9c28ee15cb7a1319b4d5036bad43da66bf857d
1 file changed +2 -1
src/go/plugin/go.d/collector/snmp/collect.go
+2 -1
@@ -111,7 +111,7 @@ func (c *Collector) setupVnode(si *snmpsd.SysInfo, deviceMeta map[string]map[str
111 hostnames := []string{c.Vnode.Hostname, si.Name, "snmp-device"}
112 i := slices.IndexFunc(hostnames, func(s string) bool { return s != "" })
113
114 - c.Vnode.Hostname = fmt.Sprintf("SNMP-%s(%s)", hostnames[i], c.Hostname)
114 + c.Vnode.Hostname = fmt.Sprintf("%s(%s)", hostnames[i], c.Hostname)
115
116 labels := make(map[string]string)
117
@@ -240,6 +240,7 @@ var orgToVendorMap = map[string]string{
240 "Hewlett-Packard": "HP",
241 "Hewlett-Packard (Schweiz) GmbH": "HP",
242 "Hewlett-Packard Slovakia": "HP",
243 + "Hewlett Packard Enterprise": "HPE",
244 "HUAWEI Technology Co.,Ltd": "Huawei",
245 "Huawei Symantec Technologies Co.,Ltd": "Huawei",
246 "Infinera Corp.": "Infinera",