Ignore trailing part of oid
Hello all,
I have a slight problem I'll try to explain as best I can. In a nutshell I want to plot latency among our router's system-ip (think loopback)
I have an OID that begins: "1.3.6.1.4.1.41916.9.2.1.6.4.64.68.161.220.4" doing a walk on that will give values of our routers system-ip (2.21.184.1) . example:
$ !snmpwalk [redacted] 1.3.6.1.4.1.41916.9.2.1.6.4.64.68.161.220.4
Walking OID 1.3.6.1.4.1.41916.9.2.1.6.4.64.68.161.220.4 from [redacted]:161 for version v3 with securityName=[redacted] authProto=MD5 authToken=***(10) privProto=AES privToken=***(10) pdu.timeout=5s walk.timeout=5s
107.199.135.25.2.12426.12386 => 2.21.184.2
107.199.135.25.2.12426.62520 => 2.21.184.1
The OID for latency begins with "1.3.6.1.4.1.41916.9.2.1.10.4.10.0.41.2.4" doing a walk on that gives correct values for latency. example:
!snmpwalk [redacted] 1.3.6.1.4.1.41916.9.2.1.10.4.10.0.41.2.4.
Walking OID 1.3.6.1.4.1.41916.9.2.1.10 from [redacted]:161 for version v3 with securityName=[redacted] authProto=MD5 authToken=***(10) privProto=AES privToken=***(10) pdu.timeout=5s walk.timeout=5s
107.199.135.25.2.12386.12386 => 83
107.199.135.25.2.12386.62520 => 82
If we compare the outputs we see where the problem comes in:
107.199.135.25.2.12426.12386 => 2.21.184.2
107.199.135.25.2.12386.12386 => 83
The 2nd to last group (sometimes the last 3), do not match so OID.##wildvalue## will not work. 12426 != 12386
What I need is a way to have ##wildvalue##.<ignore this> since the 107.199.135.25 part will always match, and the last 3 groups could change.
Currently I have the datasource's SNMP OID parameter set to 1.3.6.1.4.1.41916.9.2.1.6.4.64.68.161.220.4.. this gives the correct instance data and breaks it out by system-ip. But like i mentioned the ##wildvalue## does not work when trying to add 1.3.6.1.4.1.41916.9.2.1.10.4.10.0.41.2.4. as the datapoint to plot because of the different trailer oid sections.
Has anyone needed to do this before? If so, how was it done?