Possible bug fix for oid_key collision
This commit is contained in:
parent
f76739cb1b
commit
898798bd49
|
@ -732,7 +732,7 @@ func (h *Host) HandleResponse(oids map[string]Data, result *gosnmp.SnmpPacket, a
|
||||||
break nextresult
|
break nextresult
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(variable.Name, oid_key) {
|
if variable.Name == oid_key {
|
||||||
switch variable.Type {
|
switch variable.Type {
|
||||||
// handle Metrics
|
// handle Metrics
|
||||||
case gosnmp.Boolean, gosnmp.Integer, gosnmp.Counter32, gosnmp.Gauge32,
|
case gosnmp.Boolean, gosnmp.Integer, gosnmp.Counter32, gosnmp.Gauge32,
|
||||||
|
|
Loading…
Reference in New Issue