Add the OctetString OID value support (#1242)
This update adds support for strings values. Not sure why this was missed.
This commit is contained in:
parent
d6ceae7005
commit
c6699c36d3
|
@ -749,7 +749,7 @@ func (h *Host) HandleResponse(
|
|||
switch variable.Type {
|
||||
// handle Metrics
|
||||
case gosnmp.Boolean, gosnmp.Integer, gosnmp.Counter32, gosnmp.Gauge32,
|
||||
gosnmp.TimeTicks, gosnmp.Counter64, gosnmp.Uinteger32:
|
||||
gosnmp.TimeTicks, gosnmp.Counter64, gosnmp.Uinteger32, gosnmp.OctetString:
|
||||
// Prepare tags
|
||||
tags := make(map[string]string)
|
||||
if oid.Unit != "" {
|
||||
|
|
Loading…
Reference in New Issue