From e57aa262235401cdb650811067e3f70e50a4ed2b Mon Sep 17 00:00:00 2001 From: Simon Labrecque Date: Thu, 26 Jul 2018 12:14:23 -0400 Subject: [PATCH] Add IPSIpAddress syntax to ipaddr conversion in snmp plugin As used in Cisco VPN's, eg: http://oidref.com/1.3.6.1.4.1.9.9.171.1.3.2.1.4 --- plugins/inputs/snmp/snmp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/inputs/snmp/snmp.go b/plugins/inputs/snmp/snmp.go index 50a3cb0aeed3d..112e85c7cf520 100644 --- a/plugins/inputs/snmp/snmp.go +++ b/plugins/inputs/snmp/snmp.go @@ -1010,7 +1010,7 @@ func snmpTranslateCall(oid string) (mibName string, oidNum string, oidText strin switch tc { case "MacAddress", "PhysAddress": conversion = "hwaddr" - case "InetAddressIPv4", "InetAddressIPv6", "InetAddress": + case "InetAddressIPv4", "InetAddressIPv6", "InetAddress", "IPSIpAddress": conversion = "ipaddr" } } else if strings.HasPrefix(line, "::= { ") {