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:
Klaudiusz Staniek 2016-05-23 12:21:53 +02:00 committed by Cameron Sparr
parent d6ceae7005
commit c6699c36d3
1 changed files with 1 additions and 1 deletions

View File

@ -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 != "" {