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 {
|
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,
|
||||||
gosnmp.TimeTicks, gosnmp.Counter64, gosnmp.Uinteger32:
|
gosnmp.TimeTicks, gosnmp.Counter64, gosnmp.Uinteger32, gosnmp.OctetString:
|
||||||
// Prepare tags
|
// Prepare tags
|
||||||
tags := make(map[string]string)
|
tags := make(map[string]string)
|
||||||
if oid.Unit != "" {
|
if oid.Unit != "" {
|
||||||
|
|
Loading…
Reference in New Issue