snmp plugin: change host -> snmp_host

closes #1156
This commit is contained in:
Cameron Sparr
2016-05-10 13:27:18 -07:00
parent afdebbc3a2
commit 85dee02a3b
4 changed files with 55 additions and 47 deletions

View File

@@ -792,7 +792,7 @@ func (h *Host) HandleResponse(
// Because the result oid is equal to inputs.snmp.get section
field_name = oid.Name
}
tags["host"], _, _ = net.SplitHostPort(h.Address)
tags["snmp_host"], _, _ = net.SplitHostPort(h.Address)
fields := make(map[string]interface{})
fields[string(field_name)] = variable.Value